forked from airgradienthq/arduino
updated
This commit is contained in:
1 parent
d38f9e4d31
commit
9b0d6dbcdd
2 files changed
+2
-1
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user