Opens storage with specified namespace. If RO (read only) is set to false, then storage will be opened in read/write mode. If namespace does not exist, then it will be created if RO is set to False. If namespace does not exist and RO is set to True, then the node will raise an error.
Close the open namespace.
Erase and re-initialise non-volatile storage (NVS).
Patch to demonstrate how to record the number of times the ESP32 board has been booted. Result is displayed on an LCD.
Running this patch will erase all data from non-volatile storage.
Patch to demonstrate how to remove a key-value pair from a preferences namespace. Run in debug mode.
Clear all preferences under the open namespace (it doesn’t delete the namespace).
Patch to demonstrate how to store and retrieve common datatypes (byte, number and string) from NVS. Run in debug mode.
Retrieve specified byte from currently open namespace. If record does not exist, the Byte pin will output 0.
Retrieve specified number from currently open namespace. If record does not exist, the Num pin will output NaN.
Retrieve specified string from currently open namespace. If record doesn't exist, the String pin will output "NA".
Create a preferences object.
Store a byte identifiable by Key in currently open namespace.
Store a number identifiable by Key in currently open namespace.
Remove the specified key-value pair from the open namespace.
Store a string identifiable by Key in currently open namespace.