Page 1 of 1

Persistent Storage of BLE Config

Posted: Fri Jun 07, 2024 10:02 pm
by rrwatt
Hello,
I am working on a BLE connected device built on ESP32 WROOM 32D that may frequently lose power, but will be out of range of a provisioner when it wakes up. Because of this, I need the device to store its configuration in flash memory after it is provisioned for the first time and be able to transmit messages through the mesh network even after a power reset. I tried using the Persistent Storage function inside menuconfig but it doesnt seem to connect at all. Could someone explain to me how that feature works and what I need to add to my code to make it possible? Thanks

--rrwatt

Re: Persistent Storage of BLE Config

Posted: Mon Jun 10, 2024 6:46 pm
by chegewara
It is exactly what you need and you dont have to do anything else.

When you have this option enabled in menuconfig then during provisioning everything needed to reconnect to ble mesh network will be stored in NVS and after reset net keys, app keys, subscription etc will be restored.