📜  使用 tcp 请求的节点红色 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:08.277000             🧑  作者: Mango

代码示例1
[{"id":"a3ef18b7.a999c","type":"inject","z":"b202007e.d90a8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":480,"y":200,"wires":[["c51694de.595b3"]]},{"id":"903ca0e4.9bea1","type":"debug","z":"b202007e.d90a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":970,"y":260,"wires":[]},{"id":"69515a20.c2559c","type":"tcp request","z":"b202007e.d90a8","server":"","port":"","out":"sit","splitc":" ","name":"","x":790,"y":260,"wires":[["903ca0e4.9bea1"]]},{"id":"c51694de.595b3","type":"function","z":"b202007e.d90a8","name":"1012","func":"msg.host = \"192.168.178.2\";\nmsg.port = 1012;\nreturn msg;","outputs":1,"noerr":0,"x":630,"y":200,"wires":[["69515a20.c2559c","9ab87057.0de5a8"]]},{"id":"298f72a8.db23fe","type":"function","z":"b202007e.d90a8","name":"1015","func":"msg.host = \"192.168.178.2\";\nmsg.port = 1015;\nreturn msg;","outputs":1,"noerr":0,"x":630,"y":320,"wires":[["69515a20.c2559c","44c039e4.3a0dc8"]]},{"id":"eb52f817.2df93","type":"inject","z":"b202007e.d90a8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":480,"y":320,"wires":[["298f72a8.db23fe"]]},{"id":"9ab87057.0de5a8","type":"debug","z":"b202007e.d90a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":790,"y":200,"wires":[]},{"id":"44c039e4.3a0dc8","type":"debug","z":"b202007e.d90a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":790,"y":320,"wires":[]}]