|
SPSP
Simple publish-subscribe protocol. Connects low power IoT clients to MQTT.
|
WiFi station for ESP platform. More...
#include <wifi_station.hpp>


Public Member Functions | |
| Station (const StationConfig &config) | |
| Constructs new WiFi station object and initializes connection. More... | |
| virtual | ~Station () |
| Disconnects from AP and destroys WiFi station. More... | |
| uint8_t | getChannel () |
| Gets current WiFi channel. More... | |
| void | setChannel (uint8_t ch) |
| Sets current channel. More... | |
| void | setChannelRestrictions (const ChannelRestrictions &rest) |
| Sets channel restrictions. More... | |
| const ChannelRestrictions | getChannelRestrictions () |
| Get the Channel Restrictions object. More... | |
WiFi station for ESP platform.
There may be only one instance at a time (despite of not being implemented as singleton).
If config contains empty SSID, only functions as ESP-NOW transceiver.
All roaming features and WPA3 are enabled by default.
Implements ESP-NOW interface requirements.
Time is synchronized using SNTP server automatically during construction if connection to AP is established successfully (typically on bridge node).
Definition at line 78 of file wifi_station.hpp.
| SPSP::WiFi::Station::Station | ( | const StationConfig & | config | ) |
Constructs new WiFi station object and initializes connection.
| config | Configuration |
| ConnectionError | when connection cannot be established within configured timeout |
|
virtual |
Disconnects from AP and destroys WiFi station.
|
virtual |
|
virtual |
Get the Channel Restrictions object.
Implements SPSP::WiFi::IESPNOW.
|
virtual |
| void SPSP::WiFi::Station::setChannelRestrictions | ( | const ChannelRestrictions & | rest | ) |
Sets channel restrictions.
Set lowest and highest usable WiFi channel (legal country restrictions).
| rest | Restrictions |
1.8.17