-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What does WIFI_STORAGE_FLASH do? #6
Comments
did you get to know how it works or what it does? |
This adds some tidbit of information: I'm guessing the main reason is recovery. For instance you go into a sleep mode. Instead re-establishing a new connection after you come out of sleep mode you restore the previous connection by retrieving the values from storage. However pretty all I've seen is writing to it but unless I missed something didn't see them pulling back information. Some of the other just initialize the flash but don't save or read from it. So I think for the most part you can comment out the include: What I don't know is what non-volatile storage is? I don't know if it's eeprom or not. But mainly wherever it's stored is it limited to a number of read/writes? If it is limited then we have to make sure we don't mess with it no more than necessary. |
@mrmonteith Since ESP32 has, according to datasheet, no embedded NVS i assume that the Wifi config is written to external memory, connected by SPI to the chip. So it depends on the type of external memory which is used how many flash cycles we have. |
Why esp_wifi_set_config() sometimes resulted in ESP_ERR_NVS_NOT_ENOUGH_SPACE ?
|
Here is the relevant header with explanation |
What exactly does WIFI_STORAGE_FLASH store to flash memory? And how is it reused?
This is the only documentation I could find about that flag in esp-idf:
NVS is used to store WiFi data if the :doc:esp_wifi_set_storage(WIFI_STORAGE_FLASH) <api/wifi/esp_wifi> initialisation function is used.
If I can't figure out what exactly it stores (and how it stores it) and when it reuses the info, I don't feel comfortable using WIFI_STORAGE_FLASH.. thanks in advance.
The text was updated successfully, but these errors were encountered: