{
“did”: “FH7080738470”,
“utime”: “1970/01/28 19:59:54”,
“content”: [
{
“pid”: “000000000015”,
“type”: “0”,
“addr”: “ZYG15”,
“addrv”: “3434.889893”,
“ctime”: “1970/01/28 19:59:54”
},
{
“pid”: “000000000015”,
“type”: “0”,
“addr”: “ZWG15”,
“addrv”: “906.789978”,
“ctime”: “1970/01/28 19:59:54”
},
{
“pid”: “000000000017”,
“type”: “0”,
“addr”: “ZYG17”,
“addrv”: “4432.649902”,
“ctime”: “1970/01/28 19:59:54”
},
{
“pid”: “000000000017”,
“type”: “0”,
“addr”: “ZWG17”,
“addrv”: “1261.209961”,
“ctime”: “1970/01/28 19:59:54”
},
{
“pid”: “000000000007”,
“type”: “0”,
“addr”: “ZYG07”,
“addrv”: “10434.040039”,
“ctime”: “1970/01/28 19:59:54”
},
{
“pid”: “000000000007”,
“type”: “0”,
“addr”: “ZWG07”,
“addrv”: “2236.760010”,
“ctime”: “1970/01/28 19:59:54”
},
{
“pid”: “000000000008”,
“type”: “0”,
“addr”: “ZYG08”,
“addrv”: “3347.409912”,
“ctime”: “1970/01/28 19:59:54”
},
{
“pid”: “000000000008”,
“type”: “0”,
“addr”: “ZWG08”,
“addrv”: “965.380005”,
“ctime”: “1970/01/28 19:59:54”
},
{
“pid”: “000000000095”,
“type”: “0”,
“addr”: “ZYG95”,
“addrv”: “24062.380859”,
“ctime”: “1970/01/28 19:59:54”
},
{
“pid”: “000000000095”,
“type”: “0”,
“addr”: “ZWG95”,
“addrv”: “330.660004”,
“ctime”: “1970/01/28 19:59:54”
}
]
}
现网关发布消息如上面所示,一个pid为一个设备,每个网关所带设备数不确定,希望将数据进行解包重新发布,解包为以下格式:
{
“pid”: “000000000095”,
“type”: “0”,
“addr”: “ZWG95”,
“addrv”: “330.660004”,
“ctime”: “1970/01/28 19:59:54”
}
请问EMQX是否可以完成此任务呢,需要如何操作?