From 7cc86e57be65cb1f5751dda94bd9f60113f32ffb Mon Sep 17 00:00:00 2001 From: Shawn A Date: Tue, 6 Feb 2018 09:50:33 -0600 Subject: [PATCH] fix esp32 examples --- .../AutoConnectWithTimeout.ino | 9 +-------- examples/OnDemandWebPortal/OnDemandWebPortal.ino | 12 +----------- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/examples/AutoConnectWithTimeout/AutoConnectWithTimeout.ino b/examples/AutoConnectWithTimeout/AutoConnectWithTimeout.ino index 2edee4a..9df428d 100644 --- a/examples/AutoConnectWithTimeout/AutoConnectWithTimeout.ino +++ b/examples/AutoConnectWithTimeout/AutoConnectWithTimeout.ino @@ -1,11 +1,4 @@ -#include //https://github.com/esp8266/Arduino - -//needed for library -#include -#include -#include //https://github.com/tzapu/WiFiManager - - +#include // https://github.com/tzapu/WiFiManager void setup() { // put your setup code here, to run once: diff --git a/examples/OnDemandWebPortal/OnDemandWebPortal.ino b/examples/OnDemandWebPortal/OnDemandWebPortal.ino index 50f5657..b45e4a0 100644 --- a/examples/OnDemandWebPortal/OnDemandWebPortal.ino +++ b/examples/OnDemandWebPortal/OnDemandWebPortal.ino @@ -4,23 +4,13 @@ * trigger pin will start a webportal for 120 seconds then turn it off. * */ - -#include //https://github.com/esp8266/Arduino - -//needed for library -#include -#include -#include //https://github.com/tzapu/WiFiManager +#include // https://github.com/tzapu/WiFiManager // select which pin will trigger the configuration portal when set to LOW // ESP-01 users please note: the only pins available (0 and 2), are shared // with the bootloader, so always set them HIGH at power-up #define TRIGGER_PIN 0 -// set your ap credentials -const char *ssid = "********"; -const char *password = "********"; - int timeout = 120; // seconds WiFiManager wifiManager;