Hello,
I am implementing the Physical Activity Monitor Service which looks like this:
Every notify or indicate characteristic needs a CCC according to The PAMS spec, but when I try to do this, I need to match every characteristic to its associated callback. Right now, using the HRS example, it simply iterates over every registered callback with a the notify boolean:
I am now trying to match the GATT characteristic with the correct `_node` in order to turn on notifications on a per-characteristic basis as the spec says.
However, the attribute passed into the ccc function is just the UUID of the CCC function. How can I know which function (below) to pass it to?
Do I have to make a separate CCC_changed function for every single characteristic?
Is there a way I can return a node of the desired callback and the attribute (uuid for example) of the clicked "notify" in the nrfConnect app? I am a bit stuck as a lot of the macros have less than ideal documentation.
Thank you.