ESP32 FLASH DATA

lx393ale
Posts: 15
Joined: Fri Jan 10, 2020 12:41 pm

ESP32 FLASH DATA

Postby lx393ale » Mon May 30, 2022 3:57 pm

Hello everybody,
I need some advice on choosing the best way:
I have 4kb (it's a structure) of data that needs to be stored permanently and sometimes updated (not all together but some structure variables as needed). Currently I have created a spiffs partition where I will overwrite a file with all this data whenever there is a variation. However, this leads to keeping the CPU busy making it lose its connection to the router (as happens here https://www.esp32.com/viewtopic.php?t=6800&p=29472). Are there better alternatives, perhaps going to save the single value and not all 4kb?

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 FLASH DATA

Postby ESP_Sprite » Tue May 31, 2022 1:21 am

I'd break the structure apart a bit and use nvs to store the components. With 4K, you may want to make sure the nvs partition isn't at its absolute minimum size, though.

Who is online

Users browsing this forum: No registered users and 162 guests