Bluetooth Gatt writeCharacteristic returns false

I created a peripheral device with the characteristic WRITE_TYPE_NO_RESPONSE. With another application, I wrote about the feature, but I have a random problem with the samsung galaxy nexus i9250 with lollipop 5.1.1: sometimes the BluetoothGatt.writeCharacteristic function returns false and the recording fails.

What could it be? Could this be a cyanogen mode? And how can I fix this problem?

On the periphery:

new BluetoothGattCharacteristic(
                UUID.fromString(characteristic),
                BluetoothGattCharacteristic.PROPERTY_WRITE_NO_RESPONSE ,
                BluetoothGattCharacteristic.PERMISSION_WRITE);

EDIT : these problems only happened with android> = 5.0.2

Has never been on kitkat and on Android 5.0.1, is it an accident?

+4
source share
1 answer

, / BluetoothGatt.

0

All Articles