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

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");