|
Politician 1.0.0
WiFi Auditing Library for ESP32
|
Helper for persistently storing captured BSSIDs in NVS memory. More...
#include <PoliticianStorage.h>
Public Member Functions | |
| NvsBssidCache (const char *ns="wardrive") | |
| void | begin () |
| Initializes the NVS memory and loads the cached BSSIDs into RAM. | |
| void | loadInto (Politician &engine) |
| Feeds the loaded BSSIDs into the Politician engine so it knows to ignore them. | |
| bool | add (const uint8_t *bssid) |
| Adds a newly captured BSSID to the cache and saves it to NVS. | |
| void | clear () |
| Clears the entire cache from NVS. | |
Helper for persistently storing captured BSSIDs in NVS memory.
This ensures that previously captured networks aren't attacked again after a reboot.
Definition at line 214 of file PoliticianStorage.h.
|
inline |
Definition at line 223 of file PoliticianStorage.h.
|
inline |
Adds a newly captured BSSID to the cache and saves it to NVS.
| bssid | The 6-byte BSSID to save. |
Definition at line 252 of file PoliticianStorage.h.
|
inline |
Initializes the NVS memory and loads the cached BSSIDs into RAM.
Definition at line 230 of file PoliticianStorage.h.
|
inline |
Clears the entire cache from NVS.
Definition at line 269 of file PoliticianStorage.h.
|
inline |
Feeds the loaded BSSIDs into the Politician engine so it knows to ignore them.
| engine | Reference to your active Politician instance |
Definition at line 241 of file PoliticianStorage.h.
References engine.