Improve reconnect

This commit is contained in:
2025-08-28 20:29:17 +02:00
parent 936d1dba20
commit eeb317c108
4 changed files with 18 additions and 11 deletions

View File

@@ -6,6 +6,7 @@ class Network {
public:
Network(std::string_view hostname, std::string_view apSsid = "Smart RGB");
~Network();
void reconnect();
bool isConnected() const;
std::string getHostname() const;
bool setHostname(const std::string_view &hostname);
@@ -27,6 +28,6 @@ private:
<p><small>ESP32 WiFi Manager (c) 2022-2025 by Martin Verges</small></p>
</body></html>
)html";
std::string_view hostname;
std::string_view apSsid; // SSID for the fallback AP
std::string hostname;
std::string apSsid; // SSID for the fallback AP
};