subDeviceHistoryNotify
POST
| 参数名称 | 类型 | 是否必选 | 描述 |
|---|---|---|---|
| topic | string | 是 | $sys/{pid}/{device-name}/thing/history/post |
| protocol | string | 是 | 协议名称,包含MQTT,OTHER |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| errno | int | 调用失败时,返回的错误码序号 |
| error | string | 调用失败时,返回的错误码 |
POST /proxy/device/thing/history/post?topic=$sys/9701D5Lc56/device1/thing/history/post&protocol=mqtt
{
"id":"123",
"version":"1.0",
"params":[{
"identity":{
"productID":"k5NIV817Ww",
"deviceName":"childDevice1"
},
"properties":{
"status":[{
"value":1,
"time":1619142952931
}],
"gear":[{
"value":1,
"time":1619142952931
}]
},
"events":{
"RolloverEvent":[{
"value":{
"RolloverAccP":3,
"RolloverAccE":3
},
"time":1619142952931
}]
}
},
{
"identity":{
"productID":"k5NIV817Ww",
"deviceName":"ChildDevice2"
},
"properties":{
"status":[{
"value":0,
"time":1619142952931
}],
"gear":[{
"value":2,
"time":1619142952931
}]
},
"events":{
"RolloverEvent":[{
"value":{
"RolloverAccP":4,
"RolloverAccE":4
},
"time":1619142952931
}]
}
}]
}
{
"errno": 0,
"error": "succ"
}