Unable to do UUID compare in CCC function #41030
Unanswered
cgbdevelco
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@cgbdevelco Can you post what value you get in I just tried your code, and I get 2902 ( |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have created different characteristics with the CCC macro (BT_GATT_CCC) that share the same "Configuration changed callback" function.
Inside the function below, i try to get the UUID of the characteristic to determine which one notifications has been enabled on.
static void cccCfgChanged(const struct bt_gatt_attr *attr, uint16_t value)
{
char str[BT_UUID_STR_LEN];
bt_uuid_to_str(attr->uuid, str, sizeof(str));
}
The function bt_uuid_to_str just give junk in the char array, does attr-uuid not contain the uuid of the characteristic which has enabled notifications?
I have also tried bt_uuid_cmp without any luck.
Beta Was this translation helpful? Give feedback.
All reactions