The ble_store_util_bonded_peer function has a hardcoded value of 1 for the max_peer parameter, which might cause issues when BLE_STORE_MAX_BONDS is greater than 1. In such cases, an error code (rc=6) is returned due to resource exhaustion. This prevents the execution of the ble_gap_unpair function, resulting in the oldest peer not being deleted.
Modifications were made to accommodate a maximum of BLE_STORE_MAX_BONDS bonds.
ble_store_util_bonded_peer
function has a hardcoded value of 1 for themax_peer
parameter, which might cause issues whenBLE_STORE_MAX_BONDS
is greater than 1. In such cases, an error code (rc=6) is returned due to resource exhaustion. This prevents the execution of theble_gap_unpair
function, resulting in the oldest peer not being deleted.