2016-11-09 14:26:28 -05:00
# 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.
2016-11-10 23:16:54 -05:00
Example also shows how to check if read / write operation was successful, or certain value is not initialized in NVS. Diagnostic is provided in plain text to help track program flow and capture any issues on the way.
2016-11-09 14:26:28 -05:00
2017-01-16 17:08:36 -05:00
Check another example *storage/nvs_rw_blob* , that shows how to read and write variable length binary data (blob).
2016-11-09 14:26:28 -05:00
2017-09-07 12:48:15 -04:00
Detailed functional description of NVS and API is provided in [documentation ](https://esp-idf.readthedocs.io/en/latest/api-reference/nvs_flash.html ).
2016-11-09 14:26:28 -05:00
See the README.md file in the upper level 'examples' directory for more information about examples.