Android BLE read / write flag failed in Lollipop, but worked in Kitkat

According to the header, I can successfully read / write data below the candy, but in lollipop many times I get the message “Read / Write”.

This is how I do read / write data:

boolean isRead= getmBluetoothGatt().readCharacteristic(characteristic);

on lollipop devices, I get isRead as false many times, but it works fine on non lollipop os.

Has anyone encountered such a problem? The answer will be very grateful. Thank.

+4
source share
2 answers

, API, Android Kitkat (APIlevel 19), Lollipop ( API 22) .

https://developer.android.com/about/versions/android-5.0.html#Wireless, .

0

bluetooth, android Lollipop, Kitkat. Lollipop . Bluetooth-, . gatt- , gatt, . , 2 . Bluetooth.

Nexus 9.

0

All Articles