f7cb6fc969
Updated previusly submitted example, saved it as "07_nvs_rw_value" and added a new one. Overview of examples: * 07_nvs_rw_value - simple read and write a single value * 08_nvs_rw_blob - read and write a blob that is extened with new data on each restart of ESP32 Removed LICENSE files
13 lines
808 B
Markdown
13 lines
808 B
Markdown
# Non-Volatile Storage (NVS) Read and Write Example
|
|
|
|
Demonstrates how to read and write a single integer value using NVS.
|
|
|
|
The value holds the number of ESP32 module restarts. Since it is written to NVS, the value is preserved between restarts.
|
|
|
|
Example also shows how to check if read / write operation was successful, or certain value is not initialized in NVR. Diagnostic is provided in plain text to help track program flow and capture any issues on the way.
|
|
|
|
Check another example *08_nvs_rw_blob*, that shows how to read and write a blob (binary large object).
|
|
|
|
Detailed functional description of NVS and API is provided in [documentation](http://esp-idf.readthedocs.io/en/latest/api/nvs_flash.html).
|
|
|
|
See the README.md file in the upper level 'examples' directory for more information about examples.
|