[Example] Basic nodes flow2
Posted: Mon Oct 16, 2023 12:53 pm
This is basic nodes flow2 for IoT Studio try:
Code: Select all
[{"id":"41e2e7b968d1c6fd","type":"inject","z":"fa60de603bcf672a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":340,"y":260,"wires":[["b3c2a5074ca16049"]]},{"id":"b3c2a5074ca16049","type":"function","z":"fa60de603bcf672a","name":"no change","func":"\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":510,"y":260,"wires":[["27e6f764488bd658"]]},{"id":"27e6f764488bd658","type":"debug","z":"fa60de603bcf672a","name":"msg.payload","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":710,"y":260,"wires":[]},{"id":"98d4391b3972dc29","type":"inject","z":"fa60de603bcf672a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":340,"y":320,"wires":[["3f016e4659173e44"]]},{"id":"3f016e4659173e44","type":"function","z":"fa60de603bcf672a","name":"empty","func":"","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":320,"wires":[["4c305d856aa3a4a9"]]},{"id":"4c305d856aa3a4a9","type":"debug","z":"fa60de603bcf672a","name":"msg.payload","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":710,"y":320,"wires":[]},{"id":"dc1a262f54b01cb8","type":"inject","z":"fa60de603bcf672a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":340,"y":380,"wires":[["2b6cc24289ec3072"]]},{"id":"2b6cc24289ec3072","type":"function","z":"fa60de603bcf672a","name":"return null","func":"return null;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":500,"y":380,"wires":[["0eac84aa0ea37ee8"]]},{"id":"0eac84aa0ea37ee8","type":"debug","z":"fa60de603bcf672a","name":"msg.payload","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":710,"y":380,"wires":[]},{"id":"1f6272e8579bf6a3","type":"inject","z":"fa60de603bcf672a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":340,"y":440,"wires":[["51725ec517c6c0cb"]]},{"id":"51725ec517c6c0cb","type":"function","z":"fa60de603bcf672a","name":"without payload","func":"msg = {\n nopayload : true\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":520,"y":440,"wires":[["db31457e51f95439","58e88b0415e4bfe6"]]},{"id":"db31457e51f95439","type":"debug","z":"fa60de603bcf672a","name":"msg.payload","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":710,"y":440,"wires":[]},{"id":"58e88b0415e4bfe6","type":"debug","z":"fa60de603bcf672a","name":"msg","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":690,"y":480,"wires":[]}]