mqttphpjson,MQTT各种json格式模板{"data":{"wendu":25,"shidu":55}} 平台展⽰json格式
{"data":{"wendu":"a:1212,b:33","shidu":55}}phpjson格式化输出
{"wendu":25}折线图⽅式展⽰温度
{"wendu":"q:121,b:323"}字符串⽅式数据上传
{
"data":{"wendu":"a:1212,b:33","shidu":55}
,
"dat1a":{"wendu":"a:6666,b:6666","shidu":66}
}
$crsp/cmduuid  回复下发命令
======================================================
{
"datastreams":[
{
"id":"temp",
"datapoints":[
{
"value":25
}
]
}
]
}
{"datastreams":[{"id":"temp","datapoints":[{"value":25}]}]}
type1以折线图⽅式展⽰,type3⽤的json⽅式展⽰
=======================================================
{
"datastreams":[
{
"id":"temp",
"datapoints":[
{
"value":25
}
]
},
{
"id":"temp2",
"datapoints":[
{
"value":25
}
]
}
]
}
传多个数据点
=======================================================增加时间戳
{
"datastreams":[
{
"id":"temp",
"datapoints":[
{
"at":"2013-04-22 22:22:22",
"value":25
}
]
}
]
}
======================================================= {
"datastreams":[
{
"id":"temp",
"at":"2013-04-22 22:22:22",
"value":"25"
}
]
}
]
}
======================================================= {
"datastreams":[
{
"id":"temp",
"datapoints":[
{
"at":"2013-04-22 22:22:22",
"value":"25:ffdfdf"
}
]
}
]
}
======================================================= {"datastreams":[{"id":"location","datapoints":[{"value":{"lon":106,"lat":29}}]}]}
显⽰地图,type1显⽰地图,type3显⽰json
{"GPS":{"lat":29.62514,"lon":106.48901}}
======================================================= {
"datastreams":[
{
"id":"temp",
"datapoints":[
{
]
}
]
,
"datastreams2":[
{
"id":"temp",
"datapoints":[
{
"value":25
}
]
}
]
}
以上为多个数据流
===========================================================

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。