|
Politician 1.0.0
WiFi Auditing Library for ESP32
|
Helper for writing HandshakeRecords to an HC22000 text file. More...
#include <PoliticianStorage.h>
Public Member Functions | |
| Hc22000FileLogger () | |
| ~Hc22000FileLogger () | |
| bool | open (fs::FS &fs, const char *path) |
| Opens the HC22000 file for streaming writes. | |
| bool | write (const HandshakeRecord &rec) |
| Writes a HandshakeRecord to the open file. | |
| void | close () |
| Closes the underlying file handle. | |
| bool | isOpen () const |
| Returns true if the file is currently open for streaming. | |
Static Public Member Functions | |
| static bool | append (fs::FS &fs, const char *path, const HandshakeRecord &rec) |
| Appends a HandshakeRecord to a file as an HC22000 string (opens and closes per call). | |
Helper for writing HandshakeRecords to an HC22000 text file.
Supports both streaming (open/write/close) and one-shot (static append()) usage.
Definition at line 144 of file PoliticianStorage.h.
|
inline |
Definition at line 146 of file PoliticianStorage.h.
|
inline |
Definition at line 148 of file PoliticianStorage.h.
References close().
|
inlinestatic |
Appends a HandshakeRecord to a file as an HC22000 string (opens and closes per call).
Prefer the streaming API (open/write/close) for continuous capture.
Definition at line 185 of file PoliticianStorage.h.
|
inline |
Closes the underlying file handle.
Safe to call multiple times.
Definition at line 174 of file PoliticianStorage.h.
Referenced by open(), and ~Hc22000FileLogger().
|
inline |
Returns true if the file is currently open for streaming.
Definition at line 179 of file PoliticianStorage.h.
|
inline |
Opens the HC22000 file for streaming writes.
Definition at line 154 of file PoliticianStorage.h.
References close().
Referenced by append().
|
inline |
Writes a HandshakeRecord to the open file.
Definition at line 166 of file PoliticianStorage.h.
References politician::format::toHC22000().
Referenced by append().