Clear the BLE whitelist
Posted: Sat Aug 18, 2018 10:57 am
I am trying to figure out how one can clear the whitelist if the old device address is unknown.
esp_ble_gap_update_whitelist(bool add_remove, esp_bd_addr_tremote_bda)
Will allow you to add/remove devices, but in the scenario you want to clear the whitelist and revoke any previously added devices the previous address may not have been recorded or known and there is not a function either to get an array of whitelisted devices.
I can see that the bluedroid stack has a function for this void btm_ble_clear_white_list (void):
https://github.com/espressif/esp-idf/bl ... e_bgconn.c
Is this just something that was overlooked during implementation or is there another way that people normally do this?
esp_ble_gap_update_whitelist(bool add_remove, esp_bd_addr_tremote_bda)
Will allow you to add/remove devices, but in the scenario you want to clear the whitelist and revoke any previously added devices the previous address may not have been recorded or known and there is not a function either to get an array of whitelisted devices.
I can see that the bluedroid stack has a function for this void btm_ble_clear_white_list (void):
https://github.com/espressif/esp-idf/bl ... e_bgconn.c
Is this just something that was overlooked during implementation or is there another way that people normally do this?