简要描述:
根据产品key和设备名称查询设备属性信息
请求URL:
/api/v1/data/device/property?productKey=xxx&deviceName=xxx
请求方式:
GET
请求参数:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
productKey | 是 | string | 产品key |
deviceName | 是 | string | 设备名称 |
返回示例
{
"code": 0,
"data": {
"list": [
{
"dName": "bvt_upload",
"pKey": "077F255C9E0F440687CE7AC2547DF0EF",
"property": "LightSwitch",
"propertyValue": "false",
"timestamp": "1586779491486",
"updatetime": "2020-04-13 20:05:18"
}
]
},
"message": "成功"
}
返回参数:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
list | 是 | List | 信息列表 |
timestamp | 是 | Long | 业务时间戳 |
pKey | 是 | String | 产品Key |
dName | 是 | String | 设备名称 |
property | 是 | String | 产品属性 |
propertyValue | 是 | String | 产品属性值 |
updatetime | 是 | String | 更新时间 |