|
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.
|
Up to kMaxNetworks saved networks; the least recently added or joined one is evicted when full. More...
#include <network_list.h>
Public Types | |
| enum class | AddResult { Added , Replaced , Evicted , Invalid } |
Public Member Functions | |
| AddResult | add (const char *ssid, size_t ssid_len, const char *pass, size_t pass_len) |
| Adds or updates a network. SSID 1-32 bytes, password empty or 8-63 printable ASCII bytes. | |
| bool | forget (const char *ssid, size_t ssid_len) |
| Removes a network by byte-exact SSID; false if absent. | |
| void | mark_joined (size_t index) |
| Marks an entry as just joined (last_ok_seq = ++seq). | |
| int | find (const char *ssid, size_t ssid_len) const |
| Index of the byte-exact SSID, or -1. | |
| size_t | size () const |
| const NetworkEntry & | at (size_t index) const |
| bool | restore (const NetworkEntry &e) |
| Appends an entry as loaded from storage; false if full or the entry is invalid. | |
| uint32_t | seq () const |
| void | clear () |
Up to kMaxNetworks saved networks; the least recently added or joined one is evicted when full.