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 1.4KB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ### __How-To use this Project__
  2. 1. Download and install [Visual Studio Code](https://code.visualstudio.com/download)
  3. 2. Install [PlatformIO IDE extension](https://platformio.org/install/ide?install=vscode) for Visual Studio Code
  4. 3. Download sources from master branch, "zip" or "git clone"
  5. 4. Create [wifi_credentials.h](include/wifi_credentials.h) from [templ_wifi_credentials.h](include/templ_wifi_credentials.h) in include/
  6. ```cpp
  7. #ifndef __WIFI_CREDENTIALS_H
  8. #define __WIFI_CREDENTIALS_H
  9. #ifndef STASSID
  10. #define STASSID "ssid"
  11. #define STAPSK "key"
  12. #endif
  13. #endif // __WIFI_CREDENTIALS_H
  14. ```
  15. 5. Create [platformio.ini](platformio.ini) from [templ_platformio_ini](templ_platformio_ini)
  16. ```sh
  17. $ cp templ_platformio_ini platformio.ini
  18. ```
  19. 6. __Uploading new firmware__
  20. ```sh
  21. # upload program via ota
  22. $ pio run -t upload
  23. # upload file system via ota
  24. $ pio run -t uploadfs
  25. # upload program via Serial Port
  26. # Serial Port needs to be selected in platformio.ini
  27. $ pio run -t upload -e serial
  28. # upload file system via Serial Port
  29. $ pio run -t uploadfs -e serial
  30. ```
  31. ------
  32. Additional used sources and libraries in this project and [DOKU.md](DOKU.md)
  33. - https://arduino-esp8266.readthedocs.io/en/latest/ota_updates/readme.html
  34. - https://github.com/NachtRaveVL/PCA9685-Arduino
  35. - https://arduino-esp8266.readthedocs.io/en/latest/gdb.html
  36. - check different environments inside [platformio.ini](platformio.ini)