c10d431819
This commit implements basic NVS support for the esp32. It follows the pattern of the esp32.Partition class and exposes an NVS object per NVS namespace. The initial support provided is only for signed 32-bit integers and binary blobs. It's easy (albeit a bit tedious) to add support for more types. See discussions in: #4436, #4707, #6780
15 lines
282 B
Plaintext
15 lines
282 B
Plaintext
1234
|
|
-503
|
|
1234
|
|
bytearray(b'testing a string as a blob')
|
|
26 26
|
|
bytearray(b'testing a bytearray')
|
|
19 19
|
|
(-4354, 'ESP_ERR_NVS_NOT_FOUND')
|
|
(-4354, 'ESP_ERR_NVS_NOT_FOUND')
|
|
(-4354, 'ESP_ERR_NVS_NOT_FOUND')
|
|
(-4364, 'ESP_ERR_NVS_INVALID_LENGTH')
|
|
(-4354, 'ESP_ERR_NVS_NOT_FOUND')
|
|
-503
|
|
7654
|