From fc619d7ac163804dd0ba5e91220c2aeb253a6976 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Fri, 4 Mar 2016 00:44:17 +0100 Subject: [PATCH] More Documentation --- .../WiFiAccessPointConfigurator.ino | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/WiFiAccessPointConfigurator/WiFiAccessPointConfigurator.ino b/WiFiAccessPointConfigurator/WiFiAccessPointConfigurator.ino index 8082f74..97d1d46 100644 --- a/WiFiAccessPointConfigurator/WiFiAccessPointConfigurator.ino +++ b/WiFiAccessPointConfigurator/WiFiAccessPointConfigurator.ino @@ -1,5 +1,14 @@ +/* Generic GPIO Control by HTTP REST interface */ +/* Modify GPIO by accessing DEVICE_IP/gpio?gpio=[GPIO]&value=[0|1] */ +/* At first boot it creates a WiFi access point */ +/* and provide a web server on it, so you can configure Wifi ssid */ +/* Wifi passwd, and a mDNS hostname */ +/* In this mode, device will be available at 192.168.4.1 */ +/* Device can also be put in OTA Mode: In this case, if you have */ +/* a little flash (512K), it better to disable SPIFFS in */ +/* "Flash Size" Menu. Use espota.py to upload OTA */ +/* After passing in OTA mode, next boot will be in setup mode */ -/* Create a WiFi access point and provide a web server on it. */ #include #include @@ -17,7 +26,7 @@ char eeprom[EEPROM_SIZE]; #define BOOTMODE_OTA 2 /* EEPROM LAYOUT - "BOOTMODE;SSID;PASSWORD;HOSTNAME;" + "BOOTMODE;SSID;PASSWORD;HOSTNAME;" BOOTMODE could be 0 for Setup, 1 for normal use, 2 for OTA Setup mode is trigger by setting GPIO3 to ground or at first boot */