[{"id":"1d46653.604e69b","type":"tab","label":"流程1","disabled":false,"info":""},{"id":"b7d30c66.c3d7","type":"inject","z":"1d46653.604e69b","name":"","topic":"","payload":"开始","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":1040,"wires":[["81f18e10.92c77","7dfee0ca.464ad","8b6a66ef.3f81b8"]]},{"id":"7dfee0ca.464ad","type":"change","z":"1d46653.604e69b","name":"开机","rules":[{"t":"set","p":"payload1","pt":"msg","to":"0001","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":250,"y":1000,"wires":[["4849658d.b57eac"]]},{"id":"81f18e10.92c77","type":"change","z":"1d46653.604e69b","name":"温度","rules":[{"t":"set","p":"payload3","pt":"msg","to":"0003","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":250,"y":1120,"wires":[["4849658d.b57eac"]]},{"id":"8b6a66ef.3f81b8","type":"change","z":"1d46653.604e69b","name":"风速","rules":[{"t":"set","p":"payload2","pt":"msg","to":"0002","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":250,"y":1060,"wires":[["4849658d.b57eac"]]},{"id":"23b9d530.9a3e8a","type":"debug","z":"1d46653.604e69b","name":"","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"payload","targetType":"msg","x":480,"y":1260,"wires":[]},{"id":"4849658d.b57eac","type":"function","z":"1d46653.604e69b","name":"合并输出","func":"//var ac =['0','0','0','0','0','0','0','0','0'];\n//var msg1 = { payload:msg.payload1 };\n//var msg2 = { payload:msg.payload2 };\n//var msg3 = { payload:msg.payload3 };\n//var msg4 = { payload:msg.payload4 };\n//var msg5 = { payload:msg.payload5 };\n//var msg6 = { payload:msg.payload6 };\n//var msg7 = { payload:msg.payload7 };\n//var msg8 = { payload:msg.payload8 };\n//var msg9 = { payload:msg.payload9 };\nvar ac =[];\n\nvar lst = [msg.payload1, msg.payload2,msg.payload3];\nvar s1 = lst.join(); \n//for (x in msg)\n//{\n// data = s1+s1;\n \n//}\nreturn { payload:s1};\n//return msg;","outputs":1,"noerr":0,"x":440,"y":1060,"wires":[["4f295d7f.a465f4"]]},{"id":"4f295d7f.a465f4","type":"join","z":"1d46653.604e69b","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"","joinerType":"str","accumulate":false,"timeout":"","count":"3","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":450,"y":1140,"wires":[["c8ab7c03.2e19f","23b9d530.9a3e8a"]]},{"id":"c8ab7c03.2e19f","type":"function","z":"1d46653.604e69b","name":"参数转换","func":"var data=''\nfor (x in msg.payload)\n{\n \n ms1= msg.payload[x]\n \n //for (y in ms1)\n //{\n\n //data = ms1.split(",")\n //}\n\n data = ms1.split(",")\n \n \n if (data[0].length)\n {\n arr0=data[0]\n }\n \n if (data[1].length)\n {\n arr1=data[1]\n }\n \n if (data[2].length)\n {\n arr2=data[2]\n }\n\n\n\n \n}\nvar das= arr0+arr1+arr2;\n//var das= arr5\n\nreturn { payload:das};\n","outputs":1,"noerr":0,"x":460,"y":1200,"wires":[["23b9d530.9a3e8a"]]}]