Changes for page node_red usage example UDP
Last modified by Herong Lu on 2022/05/19 16:49
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,5 +1,51 @@ 1 -= Example of usage of UDP TCPMQTT=1 += Example of usage of UDP = 2 2 3 -== UDP==3 +== After logging into the interface click '+' to create a flow == 4 4 5 +[[image:image-20220519133634-1.png]] 6 + 7 +== Rename the stream == 8 + 9 +[[image:image-20220519134042-2.png]] 10 + 11 +[[image:image-20220519134318-3.png]] 12 + 13 +[[image:image-20220519134346-4.png]] 14 + 15 +== Drag UDP in to the arrow area == 16 + 17 +[[image:image-20220519134533-5.png]] 18 + 19 +== Drag the function and debug to the blank area in the same way as above == 20 + 21 +[[image:image-20220519134850-6.png]] 22 + 23 +== configure UDP in == 24 + 25 + 26 +[[image:image-20220519135402-7.png]] 27 + 28 +Write to the UDP port that the device node sends to the server 29 + 30 +Example My UDP device node sends to server port 8585 31 +just write 8585 32 + 33 +Note that the port that is already in use cannot be used. If the receiving fails, you need to check whether the port of the server is occupied. The sending port of the device node should not use the default port used by the server, such as a common port such as 8080. 34 + 35 +In order to avoid data confusion, different types of nodes do not use the same UDP port, because different nodes have different data formats and different functions. 36 + 37 +[[image:image-20220519135915-8.png]] 38 + 39 +[[image:image-20220519141355-11.png]] 40 + 41 +[[image:image-20220519141704-12.png]] 42 + 43 +== About function == 44 + 45 +If you are familiar with JS code, you can write it yourself 46 +If you are not familiar, we have the JS code for each type of node, you just need to copy and paste it into it 47 + 48 +[[image:image-20220519141833-13.png]] 49 + 50 + 5 5