wx.createBLEConnection成功后
用wx.notifyBLECharacteristicValueChange去enable一个perm为BT_GATTS_REC_PERM_WRITABLE_ENCRYPTION的特性的notify
wx.notifyBLECharacteristicValueChange报错10008 ‘Encryption is insufficient’
报错信息:
enable response cccd fail: {errCode: 10008, errno: 1500104, errMsg: "notifyBLECharacteristicValueChange:fail set notify failed. deviceID = 7960633C-956E-BAE2-6C06-A0596FEE53E5, serviceID = 45C93E07-D90D-4B93-A9DB-91E5DD734E35, characteristicID = 45C93C16-D90D-4B93-A9DB-91E5DD734E35, errMsg = Encryption is insufficient."}
注意到SMP并没有走完,链接不是Secure Connection,所以BT_GATTS_REC_PERM_WRITABLE_ENCRYPTION的characteristic无法write(Encryption is insufficient)
wx.createBLEConnection能否建立Secure Connection Pairing?不能的话有没有其他支持建立Secure Connection的API?
wx.createBLEConnection成功但Simple Pair没有交换identity information:
- {errCode: , errno: , errMsg: "createBLEConnection:ok"}
- errCode: 0
- errMsg: "createBLEConnection:ok"
- errno: 0
你好,建议先参考下面的帖子提供的策略:
wx.notifyBLECharacteristicValueChange在ios平台报10008?
https://developers.weixin.qq.com/community/develop/doc/000400d4710490f6801a6e89d56000
这种情况从小程序端如何建立通讯。