More Documentation

This commit is contained in:
Mathieu Maret 2016-03-04 00:44:17 +01:00
parent 7292b20d87
commit fc619d7ac1
1 changed files with 11 additions and 2 deletions

View File

@ -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 <ESP8266WiFi.h>
#include <WiFiClient.h>
@ -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
*/