### Steps to run it | ### Steps to run it | ||||
##### create "template/wifi_credentials.h" | |||||
##### create "include/wifi_credentials.h" | |||||
```cpp | ```cpp | ||||
#ifndef __WIFI_CREDENTIALS_H | #ifndef __WIFI_CREDENTIALS_H |
platform = espressif8266 | platform = espressif8266 | ||||
board = esp01_1m | board = esp01_1m | ||||
framework = arduino | framework = arduino | ||||
monitor_speed = 115200 | |||||
; stuff for OTA | ; stuff for OTA | ||||
; https://docs.platformio.org/en/latest/platforms/espressif8266.html#over-the-air-ota-update | ; https://docs.platformio.org/en/latest/platforms/espressif8266.html#over-the-air-ota-update |
} | } | ||||
void setup_webserver() { | void setup_webserver() { | ||||
pinMode(led, OUTPUT); | pinMode(led, OUTPUT); | ||||
digitalWrite(led, 0); | digitalWrite(led, 0); | ||||
void loop() { | void loop() { | ||||
Serial.println(""); | |||||
ArduinoOTA.handle(); | ArduinoOTA.handle(); | ||||
server.handleClient(); | server.handleClient(); |