|
[{"id":"718554ed.8e7aac","type":"inject","name":"","topic":"","payload":"hello","payloadType":"string","repeat":"","crontab":"","once":false,"x":151,"y":457,"z":"6b5c7d92.94a384","wires":[["31a4d6ce.ce5b2a"]]},{"id":"31a4d6ce.ce5b2a","type":"tcp request","server":"192.168.1.10","port":"55555","out":"time","splitc":"100","name":"","x":353,"y":507,"z":"6b5c7d92.94a384","wires":[["4e62b5b1.b19d4c"]]},{"id":"4e62b5b1.b19d4c","type":"function","name":"only pass changes","func":"\ncontext.old = context.old || \"\";\nmsg.payload = msg.payload.toString();\n\nif (msg.payload !== context.old) {\n context.old = msg.payload;\n return msg;\n}\nreturn null;","outputs":1,"valid":true,"x":551,"y":566,"z":"6b5c7d92.94a384","wires":[["f43c9e61.0bc36"]]},{"id":"253b6ef0.dac492","type":"inject","name":"","topic":"","payload":"goodbye","payloadType":"string","repeat":"","crontab":"","once":true,"x":151,"y":532,"z":"6b5c7d92.94a384","wires":[["31a4d6ce.ce5b2a"]]},{"id":"f43c9e61.0bc36","type":"debug","name":"","active":true, |