-
Hi, I need to know which properties are set to a characteristic.
I know that each property has its own value from NimBleLocalValueAttribute.h and blue_gatt.h respectively (for example NIMBLE_PROPERTY::NOTIFY is 0x0010, which is 16), but how to get each property from the value 1554? Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The properties are a bitmask so you need to test the bits, eg. |
Beta Was this translation helpful? Give feedback.
-
Thank you @h2zero, it works!
|
Beta Was this translation helpful? Give feedback.
The properties are a bitmask so you need to test the bits, eg.
prop1 & NIMBLE_PROPERTY::NOTIFY ? printf("notify set\n") : printf("notify not set\n");