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

How in SDK7.2.0 remove the Bonding Information?

Hi: I use SDK7.2.0 encountered a problem when I was disconnected, has reached the maximum number of bonding, I want to remove the first bonding information. I do not know how to deal with? Previously SDK5.2.0 I can do it,Use these codes you can implement this feature: err_code = ble_bondmngr_central_ids_get(bonded_central_ids, &ids_array_length); APP_ERROR_CHECK(err_code);

err_code = ble_bondmngr_bonded_central_delete(bonded_central_ids[0]); APP_ERROR_CHECK(err_code);

err_code = ble_bondmngr_bonded_centrals_store(); APP_ERROR_CHECK(err_code);

But SDK7.2.0 not know how to achieve , I hope to get your help。

Related