How to receive indications/notifications on a central

1 post / 0 new
brian
Offline
Last seen:5 years 11 months ago
Expert Master
Joined:2014-10-16 18:10
How to receive indications/notifications on a central

I am having a very difficult time with the RW and DA14580 BLE API use for a central role fully hosted device. The documentation for the central role is sketch and limited at best and there are no examples provided in the SDK. Using the project template to create new project still leaves many peripheral-only responses in the code that are not conditionally compiled out when one selects the central role.

Given that, I cannot figure out how I am to receive notifications/indications. I get as far as the gattc_event_ind_handler() in any one of the profiles which ends up sending a message to whoever is going to receive it. I assume that the 'receiver' would be a callback that I write somewhere. I see registration 'methods' but I do not see how these methods can possibly point to my handler. Does anyone have an idea of how to do this?

这将是很好,如果有一种例子啊f a fully hosted blood pressure monitor or something like that which sends indications. I understand it is pretty quiet on this forum and it is likely that there will be no response.