Store ESP32 settings with Preferences (NVS): limits and a safe patterncode · unverified · Preferences stores key-value data in the NVS flash partition and survives restarts and power loss. Namespaces and keys are limited to 15 characters, and NVS is meant for many small values, not large data.