I have v2.0.0 dev12 running on a Adafruit Feather. Task 1 is setup for a switch input on GPIO-13 with switch button type set to normal switch. I have a MQTT controller enabled and can see the published result on Node Red. But MQTT is publishing at the Delay rate set for the input.
What do I change so that the input status is only published when the switch status changes?
MQTT Publish Only On Input Change
Moderators: grovkillen, Stuntteam, TD-er
Re: MQTT Publish Only On Input Change
set Delay=0prairietech wrote: ↑21 Oct 2017, 00:07 I have v2.0.0 dev12 running on a Adafruit Feather. Task 1 is setup for a switch input on GPIO-13 with switch button type set to normal switch. I have a MQTT controller enabled and can see the published result on Node Red. But MQTT is publishing at the Delay rate set for the input.
What do I change so that the input status is only published when the switch status changes?
-
- Normal user
- Posts: 37
- Joined: 20 Oct 2017, 23:47
Re: MQTT Publish Only On Input Change
Wow! That was easy! I've got to stop complicating the easy things.enesbcs wrote: ↑21 Oct 2017, 07:18set Delay=0prairietech wrote: ↑21 Oct 2017, 00:07 I have v2.0.0 dev12 running on a Adafruit Feather. Task 1 is setup for a switch input on GPIO-13 with switch button type set to normal switch. I have a MQTT controller enabled and can see the published result on Node Red. But MQTT is publishing at the Delay rate set for the input.
What do I change so that the input status is only published when the switch status changes?
Thanks.
Who is online
Users browsing this forum: No registered users and 15 guests