蓝牙写失败不执行complete

发布于 7 年前作者 leicui14207 次浏览最后编辑 7 年前来自 ask
  • 当前 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’)

}

})

1 回复
guiying34
guiying341 楼5 年前

麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html