Hi All ! I was read many posts about this function and do not understand how to check if all data is deleted.
In my situation I do:
-
Start advertising for bonded divices
-
Unexpectedly in advertising state, I need create a new pairing and I call:
- dm_device_delete_all - for deleting information about all bonded peers
- sd_ble_gap_adv_start - start advertising whith new params.
The dm_device_delete_all return NRF_SUCCESS, but data not clear.
Is the true to check
DM_CLEAR_OPERATION_ID == p_event->event_id
in device_manager_evt_handler(...) or is there another solution ?
Thanks!!!