[英]Android: GATT 137 exception when read characteristic
I'm connecting bluetotooth device.我正在连接蓝牙设备。 I'm getting GATT 137 exception when I read characteristic of bluetooth device.
当我读取蓝牙设备的特性时,我收到 GATT 137 异常。 Why I can't read characteristic?
为什么我看不到特征? Code snippet:
代码片段:
if (!mBluetoothGatt.readCharacteristic(mCharacteristic)) {
Log.e(TAG, "read characteristic task is success")
}else{
Log.e(TAG, "read characteristic task is fail")
}
code 137 is AUTHORIZATION_FAILED.代码 137 是 AUTHORIZATION_FAILED。 So you probably need to bond with your device first.
所以你可能需要先与你的设备绑定。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.