This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf5218 can't have multiple notifications

Hi, I am using the s110 and SDK 6 and trying to have multiple notifications from different services/caracteristics. For now I have two services, one for the battery and one custom. I don't do anything special to send the notifications but each service send its notification on its own timer. Every time I connect the code crashes from the function

app_evt_notify

of the device manager, and the event's id in this function is 21, so it should be, if I am not mistaken : BLE_GAP_EVT_PASSKEY_DISPLAY... that doesn't make any sense to me.

So did I miss any crucial step to have multiple notifications ? (simple notifications causes no trouble). I read in some posts that to have multiple notifications there should be a waiting loop on BLE_EVT_TX_COMPLETE but it seemed like it wasn't when notifying from distinct services, or was it ? If so where is supposed to be that loop ? I couldn't find any code sample. Thanks

Related