set_item()
set_string()
get_item()
erase_all()
Erases all entries in the scope of this handle. The scope may vary, depending on the implementation. @not If you want to erase the whole nvs flash (partition), refer to.
commit()
Commits all changes done through this handle so far. Currently, NVS writes to storage right after the set and get functions, but this is not guaranteed.
get_used_entry_count()
Calculate all entries in the scope of the handle.
set_typed_item()
get_typed_item()
set_blob()
set variable length binary value for given key This family of functions set value for the key, given its name. Note that actual storage will not be updated until nvs_commit function is called.
get_string()
get value for given key These functions retrieve the data of an entry, given its key. If key does not exist, or the requested variable type doesn't match the type which was used when setting a value, an error is returned. In case of any error, out_value is not modified. Both functions expect out_value to be a pointer to an already allocated variable of the given type. It is suggested that nvs_get/set_str is used for zero-terminated short C strings, and nvs_get/set_blob is used for arbitrary data structures and long C strings.
get_blob()
get_item_size()
Look up the size of an entry's data.
find_key()
Checks whether key exists and optionally returns also data type of associated entry.
erase_item()
Erases an entry.