2

我正在尝试在 gatt 连接并成功发现服务后立即读取特征。但在 gatt 回调中收到错误 15 (0x0f, GATT_INSUFFICIENT_ENCRYPTION) 和 137 (0x0089) onCharacteristicRead。在此错误之后,gatt 立即断开连接。

我的设备是三星 S4,4.4.2。

4

1 回答 1

3

As far as i know both errors, "GATT_INSUFFICIENT_ENCRYPTION" and "GATT_INSUFFICIENT_AUTHENTICATION" gets occurred when you try to do a GATT operation that requires encryption. This means that you need to pair with the remote BLE device before trying to do any GATT operations, for example reading a characteristic or writing to a characteristic etc.

Have a look at the following SO link to see the different ways to pair with a BLE device.

于 2014-07-24T13:37:56.897 回答