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 847B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. change IP of esp8266 accordingly
  15. IP gets printed on Serial Monitor after first Upload
  16. ```ini
  17. [env:<BOARD>]
  18. platform = espressif8266
  19. board = <BOARD>
  20. framework = arduino
  21. monitor_speed = 115200
  22. extra_scripts = pre:extra_script.py
  23. ; stuff for OTA
  24. ; https://docs.platformio.org/en/latest/platforms/espressif8266.html#over-the-air-ota-update
  25. upload_protocol = espota
  26. upload_port = <IPADRESS>
  27. upload_flags =
  28. --port=8266
  29. --auth=admin
  30. lib_deps =
  31. ottowinter/PCA9685 16-Channel PWM Driver Module Library @ 1.2.9
  32. ```