|
SPSP
Simple publish-subscribe protocol. Connects low power IoT clients to MQTT.
|
Go to the documentation of this file.
18 #include "esp_event.h"
19 #include "esp_netif.h"
40 bool enableWPAEnterprise =
false;
42 std::string eapIdentity;
46 std::string eapUsername;
47 std::string eapPassword;
58 std::chrono::milliseconds
initTimeout = std::chrono::seconds(20);
59 std::chrono::milliseconds
sntpTimeout = std::chrono::seconds(20);
82 esp_netif_t* m_netIf =
nullptr;
83 bool m_initialized =
false;
84 std::promise<void> m_connectingPromise;
139 void createIPv6LinkLocal();
160 void registerEventHandlers();
167 void initWiFiConfig();
177 static void eventHandlerWiFi(
void* ctx, esp_event_base_t eventBase,
178 int32_t eventId,
void* eventData);
188 static void eventHandlerIP(
void* ctx, esp_event_base_t eventBase,
189 int32_t eventId,
void* eventData);
WiFi interface for ESP-NOW.
void setChannel(uint8_t ch)
Sets current channel.
const ChannelRestrictions getChannelRestrictions()
Get the Channel Restrictions object.
uint8_t bssid[6]
MAC address of AP.
std::string eapCACrt
Certificate content, not filename.
uint8_t getChannel()
Gets current WiFi channel.
bool enableIPv6
Whether to enable IPv6 addressing (waits for either IPv4 or global IPv6 address)
int maxTxPower
Maximum transmit power (in dBm)
Requirements of ESP-NOW from WiFi instance.
Station(const StationConfig &config)
Constructs new WiFi station object and initializes connection.
bool lockBssid
Whether to use only AP with MAC address bssid
std::chrono::milliseconds sntpTimeout
Timeout for initial time synchronization using SNTP server.
std::string sntpServer
SNTP server address.
std::string hostnamePrefix
Hostname prefix (followed by MAC address)
WiFi station for ESP platform.
std::chrono::milliseconds initTimeout
Timeout for connecting to AP.
WiFi station configuration.
bool enableWPA3EAP192bit
Unavailable on some chips.
std::string eapCrt
Certificate content, not filename.
void setChannelRestrictions(const ChannelRestrictions &rest)
Sets channel restrictions.
WiFi channel restrictions structure.
virtual ~Station()
Disconnects from AP and destroys WiFi station.
std::string eapCrtKey
Certificate content, not filename.
std::string password
Password.
Common WiFi types (and some constants)