fix esp32 examples

This commit is contained in:
Shawn A
2018-02-06 09:50:33 -06:00
parent b22686c8a1
commit 7cc86e57be
2 changed files with 2 additions and 19 deletions
@@ -1,11 +1,4 @@
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
//needed for library
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h> //https://github.com/tzapu/WiFiManager
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
void setup() {
// put your setup code here, to run once:
@@ -4,23 +4,13 @@
* trigger pin will start a webportal for 120 seconds then turn it off.
*
*/
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
//needed for library
#include <ESP8266WebServer.h>
#include <DNSServer.h>
#include <WiFiManager.h> //https://github.com/tzapu/WiFiManager
#include <WiFiManager.h> // 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;