获取设备信息列表

更新时间:2023-06-21 07:12:57下载pdf

本文介绍获取设备信息列表的 API。

接口描述

获取设备信息列表,包括设备基本信息和扩展信息,支持分页。

接口地址

GET: /v1.0/iot-02/lighting/devices

请求参数

body 说明

参数名类型参数位置是否必填说明
pagination.pageintbodytrue页码参数
pagination.pageSizeintbodytrue每页记录数量
spaceIdStringbodytrue空间 ID

返回参数

参数名类型说明
totalint设备总数
listDeviceSaasCVO[]设备列表

请求示例

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
}

错误码

参考 错误码