This commit is contained in:
Achim committed 2023-10-23 19:01:46 +07:00
1 parent d38f9e4d31
commit 9b0d6dbcdd
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -525,6 +525,7 @@ void connectToWifi() {
WiFiManager wifiManager;
//WiFi.disconnect(); //to delete previous saved hotspot
String HOTSPOT = "AG-" + String(getNormalizedMac());
updateOLED2("180s to connect", "to Wifi Hotspot", HOTSPOT);
wifiManager.setTimeout(180);
if (!wifiManager.autoConnect((const char * ) HOTSPOT.c_str())) {
Serial.println("failed to connect and hit timeout");