make ON OFF actuator more flexible (#481)

* make ON OFF actuator more flexible

enable to choose the pin when sending the MQTT command

* add on off environment example
This commit is contained in:
Florian authored and GitHub committed 2019-11-04 20:51:29 +01:00
1 parent 81201cf7de
commit 12bd11bbe1
5 files changed
+73 -43

No files matched your search

+16
View File
@@ -2,6 +2,7 @@
default_envs =
esp32dev-ble-1
esp32dev-ble-2
env:nodemcuv2-ONOFFPILIGHT
;esp32 1
[env:esp32dev-ble-1]
@@ -41,3 +42,18 @@ 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