Void Sentry
An AI-driven, real-time Sentry Turret platform leveraging asynchronous I/O and computer vision to deliver high-precision autonomous motion tracking on resource-constrained embedded hardware.
Loading...
Searching...
No Matches
wifi_store.h
Go to the documentation of this file.
1
6#pragma once
7
8#include "blobs.h"
9#include <Arduino.h>
10
18{
19public:
27 bool load(prov::NetworkList& list, prov::PinRecord& pin);
28
30 bool save_nets(const prov::NetworkList& list);
31
33 bool save_pin(const prov::PinRecord& rec);
34
39 String hotspot_password();
40
42 void erase_all();
43};
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