WiFi class
#include <main/net/WiFi.hpp>
Contents
The WiFi manager.
Public static functions
- static void wifi_event_handler(void* arg, esp_event_base_t event_base, int32_t event_id, void* event_data)
Constructors, destructors, conversion operators
-
WiFi(WiFiMode mode = WiFiMode::
STA) explicit - ~WiFi() virtual
Public functions
- void connect()
Public variables
- bool connected
Function documentation
static void WiFi:: wifi_event_handler(void* arg,
esp_event_base_t event_base,
int32_t event_id,
void* event_data)
| Parameters | |
|---|---|
| arg | this WiFi instance |
| event_base | the ESP event base name |
| event_id | the ESP event id |
| event_data | any additional data for an event |
Interrupt driven global WiFi event handler.
WiFi:: WiFi(WiFiMode mode = WiFiMode:: STA) explicit
| Parameters | |
|---|---|
| mode | the WiFi mode |
Creates the WiFi instance with default mode Station.
void WiFi:: connect()
Attempts to make a connection to any configured devices.
Variable documentation
bool WiFi:: connected
Whether the device has a network connection.