ESP8266 Treppenlichtsteuerung mit OTA zum Firmware Upload
Go to file
2021-06-21 07:22:36 +00:00
.vscode added gzip for webpage and preprocessor timing wrapper 2021-06-11 00:01:04 +02:00
include/http modify 2021-06-21 09:12:15 +02:00
lib initial commit 2021-06-10 18:36:16 +02:00
src meine Änderung 2021-06-14 16:59:22 +02:00
.gitignore changed gitignore 2021-06-21 09:08:04 +02:00
extra_script.py added gzip for webpage and preprocessor timing wrapper 2021-06-11 00:01:04 +02:00
README.md modify 2021-06-21 09:12:15 +02:00
template_platformio.ini „template_platformio.ini“ ändern 2021-06-21 07:22:36 +00:00

Steps to run it

https://arduino-esp8266.readthedocs.io/en/latest/ota_updates/readme.html

create "include/wifi_credentials.h"
#ifndef __WIFI_CREDENTIALS_H
#define __WIFI_CREDENTIALS_H

#ifndef STASSID
#define STASSID "ssid"
#define STAPSK  "key"
#endif

#endif // __WIFI_CREDENTIALS_H
platformio.ini

change IP of esp8266 accordingly IP gets printed on Serial Monitor after first Upload

[env:<BOARD>]
platform = espressif8266
board = <BOARD>
framework = arduino
monitor_speed = 115200

extra_scripts = pre:extra_script.py

; stuff for OTA 
; https://docs.platformio.org/en/latest/platforms/espressif8266.html#over-the-air-ota-update
upload_protocol = espota
upload_port = <IPADRESS>
upload_flags =
  --port=8266
  --auth=admin

lib_deps =
  ottowinter/PCA9685 16-Channel PWM Driver Module Library @ 1.2.9