wx.notifyBLECharacteristicValueChange启动不

发布于 8 年前作者 dengming2842 次浏览最后编辑 8 年前来自 ask
  • 当前 Bug 的表现(可附上截图)

  • 预期表现

  • 复现路径

  • 提供一个最简复现 Demo

wx.notifyBLECharacteristicValueChange启动不了,相同的参数,用ios开发的app能和蓝牙设备之间能启动notify广播,用同样的参数,小程序不能启动蓝牙广播

notifyBLECharacteristicValueChange:fail set notify failed. deviceID = 0B96D578-299D-8AFA-4B3E-A48A5B26746B, serviceID = 0000FEE6-0000-1000-8000-00805F9B34FB, characteristicID = 0000FEC6-0000-1000-8000-00805F9B34FB, errMsg = The attribute could not be found.

2 回复
zjiang
zjiang1 楼6 年前

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

zhangxiulan
zhangxiulan2 楼6 年前

The characteristic does not have a Client Characteristic Config descriptor which causes the error.