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;
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
class Network {
|
||||
public:
|
||||
Network(std::string_view hostname, std::string_view apSsid = "Smart RGB");
|
||||
~Network();
|
||||
bool isConnected() const;
|
||||
std::string getHostname() const;
|
||||
bool setHostname(const std::string_view &hostname);
|
||||
|
||||
Reference in New Issue
Block a user