设备属性上报的订阅
说明
Topic
💡
Payload
[
{
"productId": "product1",//用户输入的产品Id
"deviceId": "device1",//用户输入的设备Id
"properties": [
{
"key": "Power",//设备上报的点位名称
"value": true,//设备上报点位对应的值
"type": "bool",//点位值的数据类型
"time": 1524448722000,//上报时间戳
"module": ""
},
{
"key": "WF",
"value": 2,
"type": "int",
"time": 1524448722000,
"module": ""
}
]
},
{
"productId": "product2",
"deviceId": "device2",
"properties": [
{
"key": "WF",
"value": "111111111111",
"type": "text",
"time": 1524448722000,
"module": "module1"
}
]
},
{
"productId": "product3",
"deviceId": "device3",
"properties": [
{
"key": "Power",
"value": 1.001,
"type": "double",
"time": 1524448722000,
"module": ""
}
]
}
]
字段说明
字段名称 | 字段类型 | 字段描述 | 是否必传 |
---|---|---|---|
productId | string | 产品ID | 是 |
deviceId | string | 设备ID | 是 |
properties | Object[] | 属性信息集合 | 是 |
key | string | 属性identifier,属性唯一标识符 | 是 |
value | dynamic | 属性值 | 是 |
type | string | int 、float 、double 、string 、date (String类型或long类型UTC毫秒)、bool (0或1的int类型)、enum (int类型) | 是 |
time | long | 上报时间,毫秒级时间戳 | 是 |
module | string | 属性所属模块,不传或为空时则为默认模块 | 否 |
修改于 2024-05-22 01:42:00