Releases: rpolitex/ArduinoNvs
Releases · rpolitex/ArduinoNvs
Better encryption support, default value to `getString()`
Overview
- Support for specific encryption-related use-cases:
- non-encrypted NVS on Encryption-enabled system
- use encryption keys, not stored in the key-partition
- Added default value to
getString()
- Added
format()
function to clear and format the whole NVS partition - Added optional partition de-init during
close()
Support for specific encryption-related use-cases
There are some cases when nvs_flash_init()
works not perfectly:
- You need access to Non-encrypted NVS on Encryption-enabled system (CONFIG_NVS_ENCRYPTION=1).
Use usualbegin(String namespaceNvs)
. - You store NVS keys in external secure storage (or hardcoded) (instead of in NVS Key Partition).
Usebegin(String namespaceNvs, nvs_sec_cfg_t *keys)
. See some details here.
NOTE: You cannot use encrypted and non-encrypted NVS namespaces simultaneously (because ArduinoNvs uses one NVS_DEFAULT_PART_NAME partition for all namespaces).
// Example with hardcoded keys
nvs_sec_cfg_t keys = {
.eky = {1, 2, 3, 4, 5},
.tky = {6, 7, 8, 9, 10}
};
ArduinoNvs E;
E.begin("TEST1", &keys));
// use lib as usual
Default getter value
- Added a default value to getters, to return in case of error [ tnx @cmeldas]
- Added espressif32 to target platforms [tnx @programminghoch10]
Silent mode updated
2.5 Silent mode updated
Prohibited zero-length blobs
2.4 Prohibit zero-length blob
Example styling
2.3 Tab/Spaces fix
Examples added
2.1 Added simple example