I encounter some weird behaviour on Android Bluetooth LE (using an Android 4.4.2 device from Samsung, and a 4.4.4 device from Google).
After connecting to a bluetooth low energy device, discovering services and then reading a characteristic, in the callback event the code BluetoothGattCharacteristic.getPermissions()
always returns zero. The code BluetoothGattCharacteristic.getProperties()
does return expected return values.
What is the difference between PERMISSION_READ
and PROPERTY_READ
in Android BluetoothGattCharacteristic
? And why does getPermissions()
always returns zero? What does this mean?