- 当前 Bug 的表现
wx.writeBLECharacteristicValue失败后不执行complete回调函数
- 复现 Demo
let buffer = new ArrayBuffer(6)
wx.writeBLECharacteristicValue({
deviceId: 'deviceId',
serviceId: 'serviceId',
characteristicId: 'characteristicId',
value: buffer,
success: (res) => {
},
fail: (err) => {
console.log(err)
},
complete:(res)=>{
console.log('complete')
}
})
微信小程序开发问题解答
微信小程序开发者回答:
麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
本文网址:http://www.91bianli.com/weixinxiaochengxu/14438.html