From 2001438d6fb1aea37045002d9973fc9fb4b9e636 Mon Sep 17 00:00:00 2001 From: tablatronix Date: Fri, 17 Sep 2021 09:37:07 -0500 Subject: [PATCH] fixing examples and actions --- .github/workflows/compile_examples.yaml | 2 +- examples/Advanced/Advanced.ino | 2 +- .../AutoConnectWithFSParameters/AutoConnectWithFSParameters.ino | 2 +- .../AutoConnectWithFSParametersAndCustomIP.ino | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/compile_examples.yaml b/.github/workflows/compile_examples.yaml index 562de27..d45da7c 100644 --- a/.github/workflows/compile_examples.yaml +++ b/.github/workflows/compile_examples.yaml @@ -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 diff --git a/examples/Advanced/Advanced.ino b/examples/Advanced/Advanced.ino index 9e386c0..3834e56 100644 --- a/examples/Advanced/Advanced.ino +++ b/examples/Advanced/Advanced.ino @@ -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 ) diff --git a/examples/Parameters/SPIFFS/AutoConnectWithFSParameters/AutoConnectWithFSParameters.ino b/examples/Parameters/SPIFFS/AutoConnectWithFSParameters/AutoConnectWithFSParameters.ino index 2d41f5b..0e1cd0c 100644 --- a/examples/Parameters/SPIFFS/AutoConnectWithFSParameters/AutoConnectWithFSParameters.ino +++ b/examples/Parameters/SPIFFS/AutoConnectWithFSParameters/AutoConnectWithFSParameters.ino @@ -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); } diff --git a/examples/Parameters/SPIFFS/AutoConnectWithFSParametersAndCustomIP/AutoConnectWithFSParametersAndCustomIP.ino b/examples/Parameters/SPIFFS/AutoConnectWithFSParametersAndCustomIP/AutoConnectWithFSParametersAndCustomIP.ino index 7da62d7..27b9da9 100644 --- a/examples/Parameters/SPIFFS/AutoConnectWithFSParametersAndCustomIP/AutoConnectWithFSParametersAndCustomIP.ino +++ b/examples/Parameters/SPIFFS/AutoConnectWithFSParametersAndCustomIP/AutoConnectWithFSParametersAndCustomIP.ino @@ -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); }