NimBLE - where is code that manages persistent bonding
Posted: Mon Jun 29, 2020 12:55 am
Hello -
This is a follow-up on this topic that covers persistent storage of the keys required to maintain device bonds across ESP32 reboots:
viewtopic.php?t=13049
Simple question: Where is the code that reads and writes the persistent data? Looking at the ble_hs_cfg store callbacks and reading through the ESP-IDF NimBLE port, I wasn't able to find the code. Presumably there are functions that read/write NVS to store the keys and associated data. The sample apps only set the store_status_cb to ble_store_util_status_rr, which I believe is called when there is insufficient storage.
Thanks,
Brian
This is a follow-up on this topic that covers persistent storage of the keys required to maintain device bonds across ESP32 reboots:
viewtopic.php?t=13049
Simple question: Where is the code that reads and writes the persistent data? Looking at the ble_hs_cfg store callbacks and reading through the ESP-IDF NimBLE port, I wasn't able to find the code. Presumably there are functions that read/write NVS to store the keys and associated data. The sample apps only set the store_status_cb to ble_store_util_status_rr, which I believe is called when there is insufficient storage.
Thanks,
Brian