1 parent
cf0f53507d
commit
5c3eccbb18
3 files changed
+32
-2
No files matched your search
@@ -19,6 +19,20 @@ OFF command:
|
||||
ON command:
|
||||
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF -m '{"gpio":15,"cmd":1}'`
|
||||
|
||||
Since v0.9.9, you could ask for a short activation, the PIN will change state for only half a second.
|
||||
|
||||
For example you could use it with a relay board to activate an existing step relay. So your home automation act as a supplementary switch and do not interfere with the existing switch in your house.
|
||||
|
||||
It's available only with [json receiving](../upload/pio.md#api):
|
||||
|
||||
Goes ON for half a second, then back to OFF:
|
||||
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF -m '{"gpio":15,"cmd":"high_pulse"}'`
|
||||
|
||||
Goes OFF for half a second, then back to ON:
|
||||
`mosquitto_pub -t home/OpenMQTTGateway_MEGA/commands/MQTTtoONOFF -m '{"gpio":15,"cmd":"low_pulse}"'`
|
||||
|
||||
Be aware that outputs are OFF by default when the board first start.
|
||||
|
||||
## FASTLED
|
||||
### The FASTLED module support 2 different operation modes
|
||||
1. control one specific RGB LED
|
||||
|
||||
Reference in new issue
Block a user