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

on_db_disc_evt, ble_db_discovery_evt_t may not be resetted?

I'm using NRF51422, s130, SDK v12.

And I'm working on a project that can connect concurrent peripheral and Central.

In this continuious connect and disconnect sequences, I need to reset all of my characteristic handler and re-set with newely discovered one.

But I'm having a problem with on_db_disc_evt.

Eventhough I've disconnected and connect to newly device (that wasn't connected before), on db_disc_handler's parameter ble_db_discovery_evt_t It keeps returning an handle that was searched from the other device, not this newly connected device.

I'm not sure why this ble_db_discovery_evt_t is not resetted, and keep giving me an old data.

How can I properly reset this ble_db_discovery_evt_t and what would be the most NRF styled way to solve this?

Related