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

ble_bondmngr_bonded_centrals_delete, does not clean the whitelist

Hi, I do:

err_code = ble_bondmngr_bonded_centrals_delete();
APP_ERROR_CHECK(err_code);

till now all is ok. But when I do:

 err_code = ble_bondmngr_whitelist_get(&whitelist);
 APP_ERROR_CHECK(err_code);

if ((whitelist.addr_count != 0) || (whitelist.irk_count != 0)) {..

White list still returns bonded centrals, which are not anymore valid. I find this an inconsistent behaviour in the SDK, but may be I am wrong. I think in the ble_bondmngr_bonded_centrals_delete a call to static void update_whitelist(void) is missing. Is there some public API call which can clean the whitelist or sync it?

Related