📜  iot2000 设置 opkg 存储库 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:41.793000             🧑  作者: Mango

代码示例1
[{"id":"38e1405b.5796d","type":"serial in","z":"c88a5f47.16d498","name":"rs-485","serial":"8bf5451a.2fb14","x":170.5,"y":223,"wires":[["f7937636.d26448","ae2f3a52.32f23"]]},{"id":"f7937636.d26448","type":"debug","z":"c88a5f47.16d498","name":"","active":true,"console":"false","complete":"false","x":377.5,"y":121,"wires":[]},{"id":"ae2f3a52.32f23","type":"function","z":"c88a5f47.16d498","name":"parse function","func":"var response = {};\nresponse.payload = {\"humidity\": msg.payload};\nresponse.topic = \"/v1.6/devices/siemens\";\nreturn response;","outputs":1,"noerr":0,"x":374.5,"y":223,"wires":[["51bcbd87.0af04c"]]},{"id":"51bcbd87.0af04c","type":"mqtt out","z":"c88a5f47.16d498","name":"","topic":"","qos":"","retain":"","broker":"cefb900f.f02ca8","x":605.5,"y":222,"wires":[]},{"id":"8bf5451a.2fb14","type":"serial-port","z":"","serialport":"/dev/ttyS2","serialbaud":"9600","databits":"8","parity":"none","stopbits":"1","newline":"\\n","bin":"false","out":"char","addchar":false},{"id":"cefb900f.f02ca8","type":"mqtt-broker","z":"","broker":"things.ubidots.com","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""}]