From 3cc6c4433f33737188ff1702dfda0c5f35816e94 Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Wed, 3 Feb 2021 17:12:35 +0900 Subject: [PATCH] add examples for UDP in/out node --- ...01 - Transfer data using UDP protocol.json | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 packages/node_modules/@node-red/nodes/examples/network/udp/01 - Transfer data using UDP protocol.json diff --git a/packages/node_modules/@node-red/nodes/examples/network/udp/01 - Transfer data using UDP protocol.json b/packages/node_modules/@node-red/nodes/examples/network/udp/01 - Transfer data using UDP protocol.json new file mode 100644 index 000000000..d53a05da8 --- /dev/null +++ b/packages/node_modules/@node-red/nodes/examples/network/udp/01 - Transfer data using UDP protocol.json @@ -0,0 +1,92 @@ +[ + { + "id": "73279b5.5151664", + "type": "udp in", + "z": "92236e19.9e4cb", + "name": "", + "iface": "", + "port": "1881", + "ipv": "udp4", + "multicast": "false", + "group": "", + "datatype": "utf8", + "x": 220, + "y": 220, + "wires": [ + [ + "d98b60d3.7331e" + ] + ] + }, + { + "id": "fb19b98f.d5aa58", + "type": "udp out", + "z": "92236e19.9e4cb", + "name": "", + "addr": "localhost", + "iface": "", + "port": "1881", + "ipv": "udp4", + "outport": "", + "base64": false, + "multicast": "false", + "x": 410, + "y": 160, + "wires": [] + }, + { + "id": "33f18897.35d5b8", + "type": "inject", + "z": "92236e19.9e4cb", + "name": "", + "props": [ + { + "p": "payload" + }, + { + "p": "topic", + "vt": "str" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "payload": "Hello, World!", + "payloadType": "str", + "x": 230, + "y": 160, + "wires": [ + [ + "fb19b98f.d5aa58" + ] + ] + }, + { + "id": "d98b60d3.7331e", + "type": "debug", + "z": "92236e19.9e4cb", + "name": "", + "active": true, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "false", + "statusVal": "", + "statusType": "auto", + "x": 370, + "y": 220, + "wires": [] + }, + { + "id": "f86495aa.8a9848", + "type": "comment", + "z": "92236e19.9e4cb", + "name": "Transfer data using UDP protocol", + "info": "`UDP in` node can be used to receive data from `UDP out` node using UDP protocol.", + "x": 230, + "y": 100, + "wires": [] + } +] \ No newline at end of file