Closed jspngh closed 5 months ago
Hi, this issue was addressed and fixed in this commit: 1.5.0 - fix(nimble): Fixed ble_gap_unpair_oldest_peer to prevent writing to invalid memory 1.4.0 -fix(nimble): Fixed ble_gap_unpair_oldest_peer to prevent writing to invalid memory 1.3.0 - fix(nimble): Fixed incorrect handling of bonded devices
In the
bleprph
example, the following configuration is usedble_hs_cfg.store_status_cb = ble_store_util_status_rr;
. However, this implementation does not work forBT_NIMBLE_MAX_BONDS
>= 2. In case ofBLE_STORE_EVENT_OVERFLOW
,ble_gap_unpair_oldest_peer
does not seem to delete all necessary data. When I replace it withble_store_util_delete_oldest_peer
, it works better. I am not sure if this because of the changes inesp-nimble
or if this is also the case in upstreammynewt-nimble
.Since we can set the
store_status_cb
to whichever function we want, this is not a giant problem, but it might be a good idea to update the example to something that works withesp-nimble
.