蓝牙写失败不执行complete
- 当前 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’)
}
})