mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-17 16:41:31 +10:00
fixing examples and actions
This commit is contained in:
@@ -56,7 +56,7 @@ jobs:
|
||||
run: |
|
||||
pio lib -g install \
|
||||
https://github.com/tzapu/WiFiManager \
|
||||
https://github.com/bblanchon/ArduinoJson#v5.13.5 \
|
||||
https://github.com/bblanchon/ArduinoJson \
|
||||
https://github.com/knolleary/pubsubclient
|
||||
|
||||
- name: Run PlatformIO Examples
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
// wifimanager can run in a blocking mode or a non blocking mode
|
||||
// Be sure to know how to process loops with no delay() if using non blocking
|
||||
bool wm_nonblocking = false;
|
||||
bool wm_nonblocking = false; // change to true to use non blocking
|
||||
|
||||
WiFiManager wm; // global wm instance
|
||||
WiFiManagerParameter custom_field; // global param ( for non blocking w params )
|
||||
|
||||
+1
-1
@@ -114,7 +114,7 @@ void setup() {
|
||||
Serial.println("failed to connect and hit timeout");
|
||||
delay(3000);
|
||||
//reset and try again, or maybe put it to deep sleep
|
||||
ESP.reset();
|
||||
ESP.restart();
|
||||
delay(5000);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -138,7 +138,7 @@ void setup() {
|
||||
Serial.println("failed to connect and hit timeout");
|
||||
delay(3000);
|
||||
//reset and try again, or maybe put it to deep sleep
|
||||
ESP.reset();
|
||||
ESP.restart();
|
||||
delay(5000);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user