用户工具

站点工具


wiki:v_interface_get_device_attributeset

获取设备属性集信息

功能:获取设备当前的属性集信息,目前可获取属性集设备包括:1、WIFI设备,设备编号01_WF_XXXXXX059;2、TX3191-M设备,设备编号:01_NB_XXXXX076;3、自带电源照明灯设备,设备编号:01_NB_XXXXXXXX0229

请求方式GET

请求路径:{projectServerUrl}/api/2.0/getDeviceAttributeSet

请求参数:

参数

是否必填

类型

描述

deviceId

String(UUID)

设备ID


返回参数:

参数

名称

类型

备注

code

返回码

string

 

message

提示语

string

 

data

数据

array<object>

 

-deviceAttributeSetTypeCode

属性编号

Integer

 2

-deviceAttributeSetTypeName

属性名称

String

 撤防/布放

–deviceAttributeSetValue

属性值

String

 撤防


示例:

示例地址:https:www.zxyun119.com/thirdPartyApi/ThreePlaceREST/api/2.0/getDeviceAttributeSet?deviceId=8d718ce3-050c-4e95-87a8-3261b607bde9

示例结果:

{
    "code": "000000",
    "message": "成功获取设备属性集信息!",
    "data": [
        {
            "deviceAttributeSetTypeCode": 2,
            "deviceAttributeSetTypeName": "布防/撤防",
            "deviceAttributeSetValue": "布防"
        },
        {
            "deviceAttributeSetTypeCode": 3,
            "deviceAttributeSetTypeName": "工作模式",
            "deviceAttributeSetValue": "年检"
        },
        {
            "deviceAttributeSetTypeCode": 12,
            "deviceAttributeSetTypeName": "起始时间段",
            "deviceAttributeSetValue": "0630"
        },
        {
            "deviceAttributeSetTypeCode": 13,
            "deviceAttributeSetTypeName": "末尾时间段",
            "deviceAttributeSetValue": "2020"
        },
        {
            "deviceAttributeSetTypeCode": 14,
            "deviceAttributeSetTypeName": "时间段标识",
            "deviceAttributeSetValue": "-"
        },
        {
            "deviceAttributeSetTypeCode": 128,
            "deviceAttributeSetTypeName": "Wifi SSID",
            "deviceAttributeSetValue": "我家的wifi"
        }
    ]
}

wiki/v_interface_get_device_attributeset.txt · 最后更改: 2023/09/08 06:36 由 admin