|
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! |
Answered by
h2zero
Feb 18, 2025
Replies: 2 comments
|
The properties are a bitmask so you need to test the bits, eg. |
0 replies
Answer selected by
RootDev4
|
Thank you @h2zero, it works! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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");