批量获取多个设备的属性当前数据
POST
/api/open/device-relation/deviceproject/v1/project/batch-list-properties最后修改时间: 13 days ago
责任人:
该接口目前有查询数量限制,目前是100个属性限制。例如10个设备,每个设备10个属性。或者100个设备,每个设备1个属性这样的总数限制。
请求参数
Query 参数
project
string
项目
Body 参数application/json
list
array [object {2}]
必需
deviceId
string
设备ID
identifierList
array[string]
属性标识符集合
示例
{
"list": [
{
"deviceId": "device001",
"identifierList": [
"sx"
]
}
]
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
array of:
deviceId
string
属性标识符
propertiesList
array [object {3}]
上报时间
identifier
string
属性标识符
time
number
上报时间
value
string | integer | boolean | array | object | number | null
属性值
示例
[
{
"deviceId": "device001",
"propertiesList": [
{
"identifier": "sx",
"time": 1699863893178,
"value": 1
}
]
}
]
最后修改时间: 13 days ago