2021-06-10 18:36:16 +02:00
|
|
|
; PlatformIO Project Configuration File
|
|
|
|
;
|
|
|
|
; Build options: build flags, source filter
|
|
|
|
; Upload options: custom upload port, speed and extra flags
|
|
|
|
; Library options: dependencies, extra library storages
|
|
|
|
; Advanced options: extra scripting
|
|
|
|
;
|
|
|
|
; Please visit documentation for the other options and examples
|
|
|
|
; https://docs.platformio.org/page/projectconf.html
|
|
|
|
|
2021-06-22 20:25:27 +02:00
|
|
|
[env]
|
2021-06-10 18:36:16 +02:00
|
|
|
platform = espressif8266
|
2021-06-22 20:25:27 +02:00
|
|
|
board = nodemcuv2
|
2021-06-10 18:36:16 +02:00
|
|
|
framework = arduino
|
2021-06-10 19:21:55 +02:00
|
|
|
monitor_speed = 115200
|
2021-06-10 20:58:48 +02:00
|
|
|
extra_scripts = pre:extra_script.py
|
|
|
|
|
2021-06-22 20:25:27 +02:00
|
|
|
[env:serial]
|
|
|
|
upload_protocol = esptool
|
|
|
|
upload_speed = 921600
|
|
|
|
|
|
|
|
[env:ota]
|
2021-06-10 18:47:55 +02:00
|
|
|
; stuff for OTA
|
|
|
|
; https://docs.platformio.org/en/latest/platforms/espressif8266.html#over-the-air-ota-update
|
|
|
|
upload_protocol = espota
|
2021-06-21 07:18:02 +00:00
|
|
|
upload_port = <!! IP ADDRESS !!>
|
2021-06-10 18:47:55 +02:00
|
|
|
upload_flags =
|
|
|
|
--port=8266
|
|
|
|
--auth=admin
|
2021-06-10 18:36:16 +02:00
|
|
|
|
2021-06-22 20:25:27 +02:00
|
|
|
[env:debug]
|
|
|
|
build_flags = -DWITH_DEBUGGING_ON -Os -g3 -ggdb3
|
|
|
|
upload_protocol = esptool
|
|
|
|
upload_speed = 921600
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|