Page 1 of 1
MQTT Publish Only On Input Change
Posted: 21 Oct 2017, 00:07
by prairietech
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?
Re: MQTT Publish Only On Input Change
Posted: 21 Oct 2017, 07:18
by enesbcs
prairietech 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?
set Delay=0
Re: MQTT Publish Only On Input Change
Posted: 21 Oct 2017, 13:57
by prairietech
enesbcs wrote: ↑21 Oct 2017, 07:18
prairietech 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?
set Delay=0
Wow! That was easy! I've got to stop complicating the easy things.
Thanks.