How long should it take for connection to to re-establish after two devices have been bounded? In my case it takes 5 - 10s no matter whether central and peripheral are already bound.
I would suspect that this delay should be far smaller in this case. Specifically, I was testing this on ble_app_hrs and ble_app_hrs_c from SDK 10.0.0 where binding is implemented. My guess is that it takes so long because in every ?DM_EVT_CONNECTION
event dm_security_setup_req()
is called, which causes re-binding. Is my guess correct? If not, how can I make rebinding as fast as possible (under 1s)
EDIT:
I found out that what takes a long time is service discovery. Now I jusgt need to find out how I can use dm_application_context_get
and dm_application_context_set
.