This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can a characteristic have more than two permissions and properties?

There is only one constructor for type BluetoothGattCharacteristic in Android SDK

BluetoothGattCharacteristic(UUID uuid, int properties, int permissions)

Does the constructor take exactly one property and one permission?

For example, I want a characteristic to be both readable and writable. Doesn't this means I need two sets of permission-property pairs?

PERMISSION_READ
PROPERTY_READ

and

PERMISSION_WRITE
PROPERTY_WRITE

But according to the constructor, I can only set one permission and property when I need two of each right? So how do I add multiple permissions and properties to a characteristic?

edit

For example this characteristic is readable and writable (according to Light Blue app)

enter image description here

Related