Persistent Storage of BLE Config

rrwatt
Posts: 19
Joined: Mon Jan 01, 2024 3:13 am

Persistent Storage of BLE Config

Postby rrwatt » Fri Jun 07, 2024 10:02 pm

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

chegewara
Posts: 2306
Joined: Wed Jun 14, 2017 9:00 pm

Re: Persistent Storage of BLE Config

Postby chegewara » Mon Jun 10, 2024 6:46 pm

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.

Who is online

Users browsing this forum: Asanga, Majestic-12 [Bot] and 140 guests