mirror of
https://github.com/1technophile/OpenMQTTGateway.git
synced 2026-03-03 14:05:43 +01:00
* make ON OFF actuator more flexible enable to choose the pin when sending the MQTT command * add on off environment example
60 lines
1.3 KiB
Plaintext
60 lines
1.3 KiB
Plaintext
[platformio]
|
|
default_envs =
|
|
esp32dev-ble-1
|
|
esp32dev-ble-2
|
|
env:nodemcuv2-ONOFFPILIGHT
|
|
|
|
;esp32 1
|
|
[env:esp32dev-ble-1]
|
|
platform = ${com.esp32_platform}
|
|
board = esp32dev
|
|
board_build.partitions = min_spiffs.csv
|
|
lib_deps =
|
|
${com-esp.lib_deps}
|
|
${libraries.ble}
|
|
build_flags =
|
|
${com-esp.build_flags}
|
|
'-DZgatewayBT="BT"'
|
|
'-DGateway_Name="OpenMQTTGateway_ESP32_1"'
|
|
upload_protocol = espota
|
|
upload_port = 192.168.1.82
|
|
upload_flags =
|
|
--auth=OTAPASSWORD
|
|
upload_speed = 512000
|
|
monitor_speed = 115200
|
|
|
|
;esp32 2
|
|
[env:esp32dev-ble-2]
|
|
platform = ${com.esp32_platform}
|
|
board = esp32dev
|
|
board_build.partitions = min_spiffs.csv
|
|
lib_deps =
|
|
${com-esp.lib_deps}
|
|
${libraries.ble}
|
|
build_flags =
|
|
${com-esp.build_flags}
|
|
'-DZgatewayBT="BT"'
|
|
'-DGateway_Name="OpenMQTTGateway_ESP32_2"'
|
|
;-DCORE_DEBUG_LEVEL=4
|
|
upload_protocol = espota
|
|
upload_port = 192.168.1.111
|
|
upload_flags =
|
|
--auth=OTAPASSWORD
|
|
upload_speed = 512000
|
|
monitor_speed = 115200
|
|
|
|
[env:nodemcuv2-ONOFFPILIGHT]
|
|
platform = ${com.esp8266_platform}
|
|
board = nodemcuv2
|
|
lib_deps =
|
|
${com-esp.lib_deps}
|
|
${libraries.esppilight}
|
|
${libraries.esp8266_mdns}
|
|
${libraries.wire}
|
|
build_flags =
|
|
${com-esp.build_flags}
|
|
'-DZgatewayPilight="Pilight"'
|
|
'-DZactuatorONOFF="ONOFF"'
|
|
'-DGateway_Name="OpenMQTTGateway_ESP8266_ONOFFRF"'
|
|
board_build.flash_mode = dout
|