ESP32 FLASH DATA
Posted: 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?
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?