收藏
回答

notifyBLECharacteristicValueChange报错10008?

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:

  1. {errCode: , errno: , errMsg: "createBLEConnection:ok"}
  2. errCode0
  3. errMsg"createBLEConnection:ok"
  4. errno0



回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容