Function esp_idf_hal::sys::nvs_commit
source ยท pub unsafe extern "C" fn nvs_commit(handle: u32) -> i32
Expand description
@brief 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.
@param[in] handle Storage handle obtained with nvs_open. Handles that were opened read only cannot be used.
@return - 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