Skip to content

Instantly share code, notes, and snippets.

@leedrch
Created January 5, 2019 17:19
Show Gist options
  • Save leedrch/509177c09a384e62557b47d6f118b19b to your computer and use it in GitHub Desktop.
Save leedrch/509177c09a384e62557b47d6f118b19b to your computer and use it in GitHub Desktop.
Node-Red Flow example : Using TCP Node & UDP Node
[{"id":"f51d85d7.b7b668","type":"comment","z":"f2d39e90.e7ae2","name":"TCP","info":"","x":70,"y":60,"wires":[]},{"id":"78e2d28c.98b88c","type":"comment","z":"f2d39e90.e7ae2","name":"UDP","info":"","x":80,"y":460,"wires":[]},{"id":"1c5ec124.27426f","type":"tcp in","z":"f2d39e90.e7ae2","name":"","server":"server","host":"","port":"88","datamode":"stream","datatype":"buffer","newline":"","topic":"","base64":false,"x":260,"y":100,"wires":[["d5695435.e7edc8","ff26a084.927f5"]]},{"id":"d3e9596e.d707d8","type":"inject","z":"f2d39e90.e7ae2","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":270,"y":60,"wires":[["1c753c36.cdeef4"]]},{"id":"d5695435.e7edc8","type":"tcp out","z":"f2d39e90.e7ae2","host":"","port":"88","beserver":"reply","base64":false,"end":false,"name":"","x":460,"y":100,"wires":[]},{"id":"1c753c36.cdeef4","type":"tcp request","z":"f2d39e90.e7ae2","server":"localhost","port":"88","out":"time","splitc":"0","name":"","x":470,"y":60,"wires":[["a11b10d0.6d1da"]]},{"id":"a11b10d0.6d1da","type":"debug","z":"f2d39e90.e7ae2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":680,"y":60,"wires":[]},{"id":"ff26a084.927f5","type":"debug","z":"f2d39e90.e7ae2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":480,"y":140,"wires":[]},{"id":"c2d98a5.13e2078","type":"inject","z":"f2d39e90.e7ae2","name":"","topic":"","payload":"abc","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":260,"y":220,"wires":[["fede4e1b.ab412"]]},{"id":"fede4e1b.ab412","type":"tcp request","z":"f2d39e90.e7ae2","server":"localhost","port":"89","out":"time","splitc":"0","name":"","x":470,"y":220,"wires":[[]]},{"id":"e4f7102c.24889","type":"tcp in","z":"f2d39e90.e7ae2","name":"","server":"server","host":"","port":"89","datamode":"stream","datatype":"buffer","newline":"","topic":"","base64":false,"x":260,"y":340,"wires":[["e73ec7fa.47eaf8"]]},{"id":"e73ec7fa.47eaf8","type":"debug","z":"f2d39e90.e7ae2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":460,"y":340,"wires":[]},{"id":"834ba701.819668","type":"inject","z":"f2d39e90.e7ae2","name":"","topic":"","payload":"abcd","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":260,"y":280,"wires":[["bbc87bbf.be8a38"]]},{"id":"bbc87bbf.be8a38","type":"tcp request","z":"f2d39e90.e7ae2","server":"localhost","port":"89","out":"time","splitc":"0","name":"","x":470,"y":280,"wires":[[]]},{"id":"ec4ce3a9.b1fa1","type":"inject","z":"f2d39e90.e7ae2","name":"","topic":"","payload":"abc","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":700,"y":220,"wires":[["7c7d1e58.76de5"]]},{"id":"7c7d1e58.76de5","type":"tcp request","z":"f2d39e90.e7ae2","server":"localhost","port":"90","out":"time","splitc":"0","name":"","x":910,"y":220,"wires":[[]]},{"id":"dcd9a699.f34d18","type":"tcp in","z":"f2d39e90.e7ae2","name":"","server":"server","host":"","port":"90","datamode":"stream","datatype":"utf8","newline":"","topic":"","base64":false,"x":700,"y":340,"wires":[["9cb3c878.918dd8"]]},{"id":"9cb3c878.918dd8","type":"debug","z":"f2d39e90.e7ae2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":900,"y":340,"wires":[]},{"id":"193438b3.a3b847","type":"inject","z":"f2d39e90.e7ae2","name":"","topic":"","payload":"abcd","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":700,"y":280,"wires":[["a0f8a04b.5d2be"]]},{"id":"a0f8a04b.5d2be","type":"tcp request","z":"f2d39e90.e7ae2","server":"localhost","port":"90","out":"time","splitc":"0","name":"","x":910,"y":280,"wires":[[]]},{"id":"67ebf9bc.e68f18","type":"inject","z":"f2d39e90.e7ae2","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":250,"y":460,"wires":[["1fde6456.400a6c"]]},{"id":"529a732b.bff81c","type":"udp in","z":"f2d39e90.e7ae2","name":"","iface":"","port":"93","ipv":"udp4","multicast":"false","group":"","datatype":"utf8","x":260,"y":520,"wires":[["55769b.22390964"]]},{"id":"1fde6456.400a6c","type":"udp out","z":"f2d39e90.e7ae2","name":"","addr":"127.0.0.1","iface":"","port":"93","ipv":"udp4","outport":"","base64":false,"multicast":"false","x":480,"y":460,"wires":[]},{"id":"55769b.22390964","type":"debug","z":"f2d39e90.e7ae2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":470,"y":520,"wires":[]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment