|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
NVS-based storage for approved ESP-NOW peers. More...
Go to the source code of this file.
Namespaces | |
| namespace | PeerStore |
Functions | |
| void | PeerStore::Init (SecuritySettings &sec, const uint8_t *preconfigured_mac=nullptr, DeviceType preconfigured_type=DeviceType::Unknown, const char *preconfigured_name=nullptr) noexcept |
| Initialize peer storage and load approved peers from NVS. | |
| bool | PeerStore::AddPeer (SecuritySettings &sec, const uint8_t mac[6], DeviceType type, const char *name) noexcept |
| Add a new approved peer to storage. | |
| bool | PeerStore::RemovePeer (SecuritySettings &sec, const uint8_t mac[6]) noexcept |
| Remove a peer by MAC address. | |
| bool | PeerStore::IsPeerApproved (const SecuritySettings &sec, const uint8_t mac[6]) noexcept |
| Check if a MAC address is in the approved peer list. | |
| const ApprovedPeer * | PeerStore::GetPeer (const SecuritySettings &sec, const uint8_t mac[6]) noexcept |
| Get peer information by MAC address. | |
| bool | PeerStore::GetFirstPeerOfType (const SecuritySettings &sec, DeviceType type, uint8_t mac_out[6]) noexcept |
| Get the first valid peer MAC of a specific device type. | |
| void | PeerStore::Save (const SecuritySettings &sec) noexcept |
| Save the current peer list to NVS. | |
| size_t | PeerStore::GetPeerCount (const SecuritySettings &sec) noexcept |
| Get the number of valid approved peers. | |
| void | PeerStore::ClearAll (SecuritySettings &sec) noexcept |
| Clear all approved peers (factory reset). | |
| void | PeerStore::LogPeers (const SecuritySettings &sec) noexcept |
| Log all approved peers (for debugging). | |
NVS-based storage for approved ESP-NOW peers.
Manages the list of approved (paired) peers stored in Non-Volatile Storage. Provides functions to add, remove, and query approved peers.