OVMS3-idf/examples/storage/nvs_rw_value
Sagar Bijwe a3b5a23b87 nvs_flash: Version compatibility check for nvs storage
This change adds a check for compatibility between the nvs version
found on nvs flash and the one assumed by running code during nvs
initialization. Any mismatch is reported to the user using new error
code ESP_ERR_NVS_NEW_VERSION_FOUND.
2018-08-08 12:43:50 +05:30
..
main nvs_flash: Version compatibility check for nvs storage 2018-08-08 12:43:50 +05:30
Makefile Moved examples to new folders / categories. Removed example numbers from example names 2017-01-16 23:08:35 +01:00
README.md docs: Switch base URL from esp-idf.readthedocs.io to docs.espressif.com 2018-06-19 11:23:33 +00: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.

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.

Check another example storage/nvs_rw_blob, that shows how to read and write variable length binary data (blob).

Detailed functional description of NVS and API is provided in documentation.

See the README.md file in the upper level 'examples' directory for more information about examples.