NODE-RED FLOW
[{"id":"50c61357.4b11bc","type":"ui_tab","z":"f36cb853.0c9348","name":"Arduino","icon":"dashboard","order":"1"},{"id":"4a44e8f0.b5bb18","type":"mqtt-broker","z":"f36cb853.0c9348","broker":"test.mosquitto.org","port":"1883","clientid":"","usetls":false,"verifyservercert":true,"compatmode":true,"keepalive":"15","cleansession":true,"willTopic":"","willQos":"0","willRetain":null,"willPayload":"","birthTopic":"","birthQos":"0","birthRetain":null,"birthPayload":""},{"id":"263112bf.d9ceee","type":"serial-port","z":"f36cb853.0c9348","serialport":"/dev/ttyACM0","serialbaud":"9600","databits":"8","parity":"none","stopbits":"1","newline":"\\n","bin":"false","out":"char","addchar":false},{"id":"323793ce.cdc86c","type":"serial in","z":"f36cb853.0c9348","name":"Arduino","serial":"263112bf.d9ceee","x":262,"y":296,"wires":[["1411049f.ebeefb","e07fc8d3.1f8038","44c2b041.bb3d5"]]},{"id":"1411049f.ebeefb","type":"debug","z":"f36cb853.0c9348","name":"","active":false,"console":"false","complete":"false","x":579,"y":428,"wires":[]},{"id":"e07fc8d3.1f8038","type":"dweetio out","z":"f36cb853.0c9348","thing":"123rrr456","name":"","x":582,"y":185,"wires":[]},{"id":"130c604c.ecf3a","type":"debug","z":"f36cb853.0c9348","name":"","active":false,"console":"false","complete":"false","x":566,"y":674,"wires":[]},{"id":"b326542d.4cd9a8","type":"dweetio in","z":"f36cb853.0c9348","thing":"123rrr456","name":"","x":246,"y":565,"wires":[["130c604c.ecf3a","74586874.55e498"]]},{"id":"44c2b041.bb3d5","type":"mqtt out","z":"f36cb853.0c9348","name":"mqtt","topic":"proviamoci","qos":"","retain":"","broker":"4a44e8f0.b5bb18","x":627,"y":341,"wires":[]},{"id":"40278716.bfd878","type":"mqtt in","z":"f36cb853.0c9348","name":"mqtt","topic":"proviamoci","broker":"4a44e8f0.b5bb18","x":625,"y":536,"wires":[["e0cc4553.1f33b8"]]},{"id":"e0cc4553.1f33b8","type":"debug","z":"f36cb853.0c9348","name":"","active":false,"console":"false","complete":"false","x":912,"y":607,"wires":[]},{"id":"74586874.55e498","type":"ui_gauge","z":"f36cb853.0c9348","tab":"50c61357.4b11bc","name":"Stream","group":"ACTUATOR","order":1,"format":"{{value}}","min":0,"max":"5","x":568,"y":761,"wires":[]},{"id":"93881fe2.d0da6","type":"ui_switch","z":"f36cb853.0c9348","tab":"50c61357.4b11bc","name":"Alarm Switch","topic":"","group":"SENSOR","order":1,"onvalue":"true","offvalue":"false","x":282,"y":868,"wires":[["67061152.5687c"]]},{"id":"3ea796f.19d846a","type":"serial out","z":"f36cb853.0c9348","name":"","serial":"263112bf.d9ceee","x":806,"y":867,"wires":[]},{"id":"67061152.5687c","type":"function","z":"f36cb853.0c9348","name":"switch to command","func":"if (msg.payload==\"true\") {\n msg.payload='3';\n}\nelse {\n msg.payload='4';\n}\nreturn msg;","outputs":1,"noerr":0,"x":555,"y":869,"wires":[["3ea796f.19d846a"]]}]
0 commenti:
Posta un commento
Nota. Solo i membri di questo blog possono postare un commento.