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.

README.md 786B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ### Steps to run it
  2. https://arduino-esp8266.readthedocs.io/en/latest/ota_updates/readme.html
  3. ##### create "include/wifi_credentials.h"
  4. ```cpp
  5. #ifndef __WIFI_CREDENTIALS_H
  6. #define __WIFI_CREDENTIALS_H
  7. #ifndef STASSID
  8. #define STASSID "ssid"
  9. #define STAPSK "key"
  10. #endif
  11. #endif // __WIFI_CREDENTIALS_H
  12. ```
  13. ##### platformio.ini
  14. see templ_platformio_ini
  15. ```ini
  16. [env:<BOARD>]
  17. platform = espressif8266
  18. board = <BOARD>
  19. framework = arduino
  20. monitor_speed = 115200
  21. extra_scripts = pre:extra_script.py
  22. ; stuff for OTA
  23. ; https://docs.platformio.org/en/latest/platforms/espressif8266.html#over-the-air-ota-update
  24. upload_protocol = espota
  25. upload_port = <IPADRESS>
  26. upload_flags =
  27. --port=8266
  28. --auth=admin
  29. lib_deps =
  30. ottowinter/PCA9685 16-Channel PWM Driver Module Library @ 1.2.9
  31. ```