ESP32 NVS Configuration at Flash

BrettG
Posts: 29
Joined: Wed Feb 15, 2017 7:32 pm

ESP32 NVS Configuration at Flash

Postby BrettG » Thu Mar 16, 2017 9:02 pm

Hi, is it possible while flashing a device to also flash on NVS data onto the NVS? Currenly every time I flash a device the NVS is being cleared. Instead I would like to add configuration data etc. Is there any too similar to "make partition_table-flash", where I can setup the key-value pairs for the NVS to be loaded on when flashed?

Thanks,
- Brett

BrettG
Posts: 29
Joined: Wed Feb 15, 2017 7:32 pm

Re: ESP32 NVS Configuration at Flash

Postby BrettG » Fri Mar 17, 2017 8:54 pm

After a bit more digging I found the embedding binary data section in the docs where I was able to add all my data in as a json structured string. This seems to be the best solution I can find at the moment.

Who is online

Users browsing this forum: Majestic-12 [Bot] and 125 guests