Overview of Non-Volatile Storage (NVS) API
The Non-Volatile Storage (NVS) API allows developers to store and retrieve variables in the device's non-volatile memory, making it suitable for configuration settings, calibration data, and other persistent variables. For most simple use cases, it is recommended to use the
SavedVar macro instead of the NVS API directly. Direct use of the NVS API is preferred when storing large amounts of data (e.g., full configuration layouts) to avoid frequent small writes.