listDeviceAbility:批量获取多个设备、通道以及配件的能力集

功能详情

批量获取多个设备、通道以及配件的能力集

请求地址

https://openapi.lechange.cn/openapi/listDeviceAbility

传入参数说明

参数名 参数类型 是否必填 默认值 合法值 参数说明
token String 开发者在账号对接模块获取的Token
deviceList deviceId String 设备序列号列表
channelList String "1,2,3,4,5":多个通道号逗号隔开 通道号列表
apList String "1,2,3,4,5":多个配件号逗号隔开 配件Id列表

样例输入

{
    "id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af",
    "system":{
        "ver":"1.0",
        "appId":"lcd08b4b07ce224508",
        "sign":"74bc756ebd53e9eef2836f8cf1730c10",
        "time":1599031074,
        "nonce":"8ec8a7bd1d1c95420de20d92422d457d"
    },
    "params":{
        "token":"At_00006acr3456d12312d3grf60147de7ec",
        "deviceList":[{
            "deviceId":"MEGREZ0000001842",
            "channelList":"0",
            "apList":"MEGREZ0000001847"
        }]
    }
}

返回data字段说明

字段名 字段类型 字段说明
deviceList deviceId String 设备序列号
ability String 设备能力项,英文逗号分隔,详见 设备能力定义
channels channelId String 通道号
channelAbility String 通道能力集,英文逗号分隔,如AlarmMD,AudioTalk
aps apId String 配件id
apAbility String 配件能力项,英文逗号分隔,如AudioTalk,PT

样例输出

{
    "result": {
        "msg": "操作成功。",
        "code": "0",
        "data": {
            "deviceList": [
                {
                    "channels": [
                        {
                            "channelAbility": "WLAN,MT,HSEncrypt,CloudStorage,LocalStorage,PlaybackByFilename,BreathingLight,RD,LocalRecord,XUpgrade,Auth,ModifyPassword,LocalStorageEnable,RTSV1,PBSV1,ESV1,PlaySound,Reboot,InfraredLight,LinkDevAlarm,AbAlarmSound,SCCode,RDV2,CK,AlarmMD,PT,AudioEncodeControlV2,FrameReverse,RemoteControl,MDW,MDS,HeaderDetect,SmartTrack,CloseCamera,CheckAbDecible,PT1,AudioTalk",
                            "channelId": "0"
                        }
                    ],
                    "aps": [],
                    "ability": "WLAN,MT,HSEncrypt,CloudStorage,LocalStorage,PlaybackByFilename,BreathingLight,RD,LocalRecord,XUpgrade,Auth,ModifyPassword,LocalStorageEnable,RTSV1,PBSV1,ESV1,PlaySound,Reboot,InfraredLight,LinkDevAlarm,AbAlarmSound,SCCode,RDV2,CK,AlarmMD,PT,AudioEncodeControlV2,FrameReverse,RemoteControl,MDW,MDS,HeaderDetect,SmartTrack,CloseCamera,CheckAbDecible,PT1,AudioTalk",
                    "deviceId": "MEGREZ0000001842"
                }
            ]
        }
    },
    "id": "d5c287b4-5b2f-4f03-baf5-8032c5c354af"
}

results matching ""

    No results matching ""