3#include <ESP8266WiFi.h>
7#include "wifi-dependent.hpp"
21 WiFiEventHandler wifiConnectHandler;
22 WiFiEventHandler wifiDisconnectHandler;
25 bool connected =
false;
26 std::vector<WifiDependent *> dependents;
57 void setConnected(
bool connected);
58 void notifyDependentsConnected();
59 void notifyDependentsDisconnected();
61 static
void onWifiConnect(const WiFiEventStationModeGotIP &event);
62 static
void onWifiDisconnect(const WiFiEventStationModeDisconnected &event);
A controller for a WiFi connection.
Definition wifi-connection.hpp:20
static auto getInstance() -> WifiConnection &
Definition wifi-connection.hpp:33
auto isConnected() -> bool
Definition wifi-connection.cpp:47
An interface defining a controller that depends on a WiFi connection.
Definition wifi-dependent.hpp:10