Versioned, CRC-checked byte layouts for the saved networks and the PIN record (pure C++20,...
Reads and writes the wifi NVS namespace (keys nets, pin, appw) using the pure blob formats.
Definition wifi_store.h:18
void erase_all()
Erases the saved networks, the PIN and the hotspot password (a new one is generated on demand).
Definition wifi_store.cpp:132
String hotspot_password()
Returns the setup hotspot password, creating and storing 10 random characters on the first call.
Definition wifi_store.cpp:104
bool save_nets(const prov::NetworkList &list)
Stores the network list blob.
Definition wifi_store.cpp:70
bool save_pin(const prov::PinRecord &rec)
Stores the PIN record blob.
Definition wifi_store.cpp:87
bool load(prov::NetworkList &list, prov::PinRecord &pin)
Loads the saved networks and the PIN record.
Definition wifi_store.cpp:15
Up to kMaxNetworks saved networks; the least recently added or joined one is evicted when full.
Definition network_list.h:14
Salted PIN hash as stored in NVS.
Definition prov_types.h:38