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

How to correct use dm_device_delete_all

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:

  1. Start advertising for bonded divices

  2. 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!!!

Parents Reply Children
No Data
Related