Hi
I am using SPIFFS with Preferences and files. Can I have a Preferences storage and a file open at the same time? Or do I need to close the Preference storage before I open a file, and vice versa?
SPIFFS Preferences and a file open simultaneously?
Re: SPIFFS Preferences and a file open simultaneously?
Hi @thomasx,
I assume you are referring to the Preferences library for Arduino (https://docs.espressif.com/projects/ard ... ences.html). If so, there should be no interference between SPIFFS partitions and the Preferences, as the latter runs over the NVS (https://docs.espressif.com/projects/esp ... flash.html).
Regarding multiple files in the SPIFFS filesystem - yes, legal option
Please let me know if you need more help
I assume you are referring to the Preferences library for Arduino (https://docs.espressif.com/projects/ard ... ences.html). If so, there should be no interference between SPIFFS partitions and the Preferences, as the latter runs over the NVS (https://docs.espressif.com/projects/esp ... flash.html).
Regarding multiple files in the SPIFFS filesystem - yes, legal option
Please let me know if you need more help
Re: SPIFFS Preferences and a file open simultaneously?
Hi
Great, thanks!
Another question then.
If I erase and init NVS using
will files stored in SPIFF, be erased, or will they remain?
Great, thanks!
Another question then.
If I erase and init NVS using
Code: Select all
nvs_flash_erase();
nvs_flash_init();
-
- Posts: 9724
- Joined: Thu Nov 26, 2015 4:08 am
Re: SPIFFS Preferences and a file open simultaneously?
Yes, they will remain. NVS and SPIFFS are independent of eachother; for instance, they use different partition types.
Who is online
Users browsing this forum: Bing [Bot] and 69 guests