1.用tcp in节点接入数据
设置为监听,设置端口号,设置输出为buffer
2.用function节点将buffer转换为string
var a=msg.payload+""; msg.payload=a; return msg;
3.用json节点将string转为对象