Write any pending changes to non-volatile storage After setting any values, nvs_commit() must be called to ensure changes are written to non-volatile storage. Individual implementations may write to storage at other times, but this is not guaranteed.
Storage handle obtained with nvs_open. Handles that were opened read only cannot be used.
Return value
- ESP_OK if the changes have been written successfully - ESP_ERR_NVS_INVALID_HANDLE if handle has been closed or is NULL - other error codes from the underlying storage driver
Examples
nvs_commit() is referenced by 13 libraries and example projects: