state machine top level should work, light not added yet
This commit is contained in:
@@ -17,6 +17,12 @@ Network::Network(std::string_view hostname, std::string_view apSsid) : hostname(
|
||||
webServer.begin();
|
||||
}
|
||||
|
||||
Network::~Network() {
|
||||
webServer.end();
|
||||
WifiManager.detachUI();
|
||||
WifiManager.detachWebServer();
|
||||
}
|
||||
|
||||
bool Network::isConnected() const {
|
||||
return WiFi.status() == WL_CONNECTED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user