Project starter for ESP8266 with webserver and over the air updates enabled.
- Webinterface
- Over the air updates
- Website resources on SPIFFS
- Enable logging for development purposes
Requires PlatformIO.
- Create
src/secret.h
fromsrc/secrects.template.h
- Set SSID and password of your WLAN and over the air hostname
- Update
OTA_HOSTNAME
depending on your needs - First deploy only:
- Comment out
upload_port
andupload_port
inplatform.io
- Plug device to FTDI adapter
- Comment out
- Flash device via OTA update/FTDI adapter
- Upload web resources to SPIFFS
Use resources in data/www/
and change depending on your needs. There is a Browsersync config in bs-config.js
you can use for development. Requires gobally installed Browsersync ($ npm i -g browser-sync
):
$ browser-sync start --config bs-config.js
Required libraries:
- ArduinoOTA
- SHA-1 Hash
- ESP Async WebServer
See (development section above)[#Development].
- ESP8266
- FTDI adapter for first deployment