wx.writeBLECharacteristicValue
调用基础库2.12.0
微信开发者工具 stable 1.05.2102010
小程序第一次蓝牙连接,调用wx.writeBLECharacteristicValue写入成功,设备主动关闭蓝牙连接。
小程序检测到蓝牙连接断开后后再次做蓝牙连接,连接成功后查询服务和特征值,然后调用wx.writeBLECharacteristicValue写入另一个服务的特征值失败
errcode:10006,msg "noconnection"
wx.writeBLECharacteristicValue
调用基础库2.12.0
微信开发者工具 stable 1.05.2102010
小程序第一次蓝牙连接,调用wx.writeBLECharacteristicValue写入成功,设备主动关闭蓝牙连接。
小程序检测到蓝牙连接断开后后再次做蓝牙连接,连接成功后查询服务和特征值,然后调用wx.writeBLECharacteristicValue写入另一个服务的特征值失败
errcode:10006,msg "noconnection"
3 个回答
结帖 ,和蓝牙接口无关。
参考一下这些回复:https://developers.weixin.qq.com/community/develop/doc/000648628904804a40896a9665b400?_at=1616742301206