I have an Android app that uses the BLE API to connect to a BLE device. If I connect to the device, and then turn off the power of the device after a few seconds, I will get this line in the logarithm:
11-15 12:33:07.977 27829-27847/com.mycompany.platform.hellodev D/BluetoothGatt: onClientConnectionState() - status=8 clientIf=6 device=55:1C:6C:86:8A:F8
which then calls our BluetoothGattCallbackcallback onConnectionStateChangewith status=8andnewStatus=0
I can not find public documentation that says what it means status=8.
Is it possible to assume that if newStatus=0transmitted, then the BLE device has turned off?
source
share