Chapter 2. API Reference
NVS_PART_NAME_MAX_SIZE
maximum length of partition name (excluding null terminator)
NVS_KEY_NAME_MAX_SIZE
Maximal length of NVS key name (including null terminator)
Type Definitions
typedef uint32_t nvs_handle_t
Opaque pointer type representing non-volatile storage handle
typedef
nvs_handle_t
nvs_handle
typedef
nvs_open_mode_t
typedef struct nvs_opaque_iterator_t *nvs_iterator_t
Opaque pointer type representing iterator to nvs entries
Enumerations
enum nvs_open_mode_t
Mode of opening the non-volatile storage.
Values:
NVS_READONLY
Read only
NVS_READWRITE
Read and write
enum nvs_type_t
Types of variables.
Values:
NVS_TYPE_U8 = 0x01
Type uint8_t
NVS_TYPE_I8 = 0x11
Type int8_t
NVS_TYPE_U16 = 0x02
Type uint16_t
NVS_TYPE_I16 = 0x12
Type int16_t
NVS_TYPE_U32 = 0x04
Type uint32_t
NVS_TYPE_I32 = 0x14
Type int32_t
NVS_TYPE_U64 = 0x08
Type uint64_t
NVS_TYPE_I64 = 0x18
Type int64_t
NVS_TYPE_STR = 0x21
Type string
NVS_TYPE_BLOB = 0x42
Type blob
NVS_TYPE_ANY = 0xff
Must be last
Espressif Systems
nvs_open_mode
724
Submit Document Feedback
Release v4.4
Need help?
Do you have a question about the ESP32-S2 and is the answer not in the manual?
Questions and answers