问题
There is only one constructor for type BluetoothGattCharacteristic
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?
来源:https://stackoverflow.com/questions/47341064/how-to-add-multiple-permissions-and-properties-to-a-characteristic