Skip to content

How to force a CCC value #35895

Answered by dlktdr
dlktdr asked this question in Q&A
Discussion options

You must be logged in to vote

Figured it out, did this in the connected callback. Seems to do what I was looking for!

uint8_t ccv = BT_GATT_CCC_NOTIFY;
bt_gatt_attr_write_ccc(conn, &bt_srv.attrs[3], &ccv, 1 , 0, NULL);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dlktdr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
1 participant