ESP8266 Treppenlichtsteuerung mit OTA zum Firmware Upload
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Simon Schmidt 71e5c47852 modify 3 years ago
.vscode added gzip for webpage and preprocessor timing wrapper 3 years ago
include/http modify 3 years ago
lib initial commit 3 years ago
src meine Änderung 3 years ago
.gitignore changed gitignore 3 years ago
README.md modify 3 years ago
extra_script.py added gzip for webpage and preprocessor timing wrapper 3 years ago
includeindex.html.gz.h added gzip for webpage and preprocessor timing wrapper 3 years ago
platformio.ini modify 3 years ago

README.md

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