更新时间:2023-06-15 06:09:50
本文介绍获取设备信息列表的 API。
获取设备信息列表,包括设备基本信息和扩展信息,支持分页。
GET: /v1.0/iot-02/lighting/devices
body
说明
参数名 | 类型 | 参数位置 | 是否必填 | 说明 |
---|---|---|---|---|
pagination.page | int | body | true | 页码参数 |
pagination.pageSize | int | body | true | 每页记录数量 |
spaceId | String | body | true | 空间 ID |
参数名 | 类型 | 说明 |
---|---|---|
total | int | 设备总数 |
list | DeviceSaasCVO[] | 设备列表 |
GET: /v1.0/iot-02/lighting/devices
{
"spaceId": "14688692426811****",
"pagination": {
"page": 1,
"pageSize": 12
}
}
{
"result": {
"list": [
{
"thirdCategory": "zig_kg",
"productId": "ehmh****",
"secondCategory": "kg",
"activeTime": 1640068718701,
"icon": "smart/icon/bay1617940536153LBTd/****.png",
"customName": "",
"installTime": 1640068718701,
"ownerId": "45360622",
"deviceId": "vdevo16400687183****",
"deviceName": "",
"uuid": "vdevo16400687183****",
"mac": "",
"spaceId": "146886924268113****",
"uid": "bay1633683638972****",
"pointId": "",
"topCategoryCode": "dgzm",
"devicePower": 0
},
{
"thirdCategory": "zig_kg",
"productId": "eb3b****",
"secondCategory": "kg",
"activeTime": 1640068729237,
"icon": "smart/icon/bay1617940536153LBTd/****.png",
"customName": "",
"installTime": 1640068729237,
"ownerId": "4536****",
"deviceId": "vdevo16400687288****",
"deviceName": "",
"uuid": "vdevo16400687288****",
"mac": "",
"spaceId": "146886924268113****",
"uid": "bay1633683638972****",
"pointId": "",
"topCategoryCode": "dgzm",
"devicePower": 0
},
{
"thirdCategory": "wf_ble_kg",
"productId": "rnfk5qvo5ayh****",
"secondCategory": "kg",
"activeTime": 1640068613147,
"icon": "smart/icon/bay1617940536153LBTd/****.png",
"customName": "",
"installTime": 1640068613147,
"ownerId": "45360622",
"deviceId": "vdevo16400686128****",
"deviceName": "",
"uuid": "vdevo16400686128****",
"mac": "",
"spaceId": "146886924268113****",
"uid": "bay1633683638972****",
"pointId": "",
"topCategoryCode": "dgzm",
"devicePower": 0
},
{
"thirdCategory": "wf_ble_xdd",
"productId": "1uqqknvmyljd****",
"secondCategory": "xdd",
"activeTime": 1639378351108,
"icon": "smart/icon/bay1591620233561etUp/****.png",
"customName": "",
"installTime": 1639378351108,
"ownerId": "45360622",
"deviceId": "vdevo16393783507****",
"deviceName": "",
"uuid": "vdevo16393783507****",
"mac": "",
"spaceId": "146886924268113****",
"uid": "bay1633683638972****",
"pointId": "147028651497700****",
"topCategoryCode": "zm",
"devicePower": 0
},
{
"thirdCategory": "wf_ble_xdd",
"productId": "sxa3tjzapeal****",
"secondCategory": "xdd",
"activeTime": 1639377489574,
"icon": "smart/icon/bay1591620233561etUp/****.png",
"customName": "",
"installTime": 1639377489574,
"ownerId": "4536****",
"deviceId": "vdevo16393774893****",
"deviceName": "",
"uuid": "vdevo16393774893****",
"mac": "",
"spaceId": "146886924268113****",
"uid": "bay1633683638972****",
"pointId": "147028651497700****",
"topCategoryCode": "zm",
"devicePower": 0
},
{
"thirdCategory": "wf_ble_xdd",
"productId": "wobsckg5p6os****",
"secondCategory": "xdd",
"activeTime": 1639377505821,
"icon": "smart/icon/bay1591620233561etUp/****.png",
"customName": "",
"installTime": 1639377505821,
"ownerId": "45360622",
"deviceId": "vdevo16393775054****",
"deviceName": "",
"uuid": "vdevo16393775054****",
"mac": "",
"spaceId": "146886924268113****",
"uid": "bay1633683638972****",
"pointId": "147028651497700****",
"topCategoryCode": "zm",
"devicePower": 0
}
],
"total": 6
},
"t": 1640598532221,
"success": true
}
参考 错误码。
该内容对您有帮助吗?
是意见反馈该内容对您有帮助吗?
是意见反馈