跳到主要内容

获取设备配置信息

注意不是业务功能配置数据

请求

iot/device/profile

参数必填类型说明
osTypeEnum查询定位配置-系统类型
packageNameString查询定位配置-包名
点击查看osType枚举值
枚举值说明
Android安卓

响应

参数必填类型说明
mqttObjectMQTT配置信息
certificateBase64String证书Base64编码
certificateExtensionString证书扩展名
locationConfigInfosJsonArray位置配置信息列表
ksAuthorizeInfoObject旷视人脸授权信息
点击查看mqtt对象
参数必填类型说明
clientIdStringMQTT客户端ID
usernameString用户名
passwdString密码
hostUrlString主机URL
portNumber端口号

点击查看locationConfigInfos结构信息
参数必填类型说明
osTypeEnum系统类型
providerEnum位置提供商
packageNameString包名
appKeyString应用密钥

provider 枚举值

枚举值说明
Baidu百度地图
Gaode高德地图

点击查看ksAuthorizeInfo对象
参数必填类型说明
resourceTypeString资源类型
KS_V0
KS_V1
KS_V2
licenseV0CodeStringv0版本激活码,resourceType为KS_V0时存在
licenseV1FileContentStringv1版本文件内容,resourceType为KS_V0KS_V1时存在
licenseV2FileContentStringv2版本文件内容,resourceType为KS_V1KS_V2时存在

ksAuthorizeInfo内容示例

{
"resourceType": "KS_V1/KS_V2",
"licenseV1FileContent": "licenseV1FileContent_fd01cecbda97",
"licenseV2FileContent": "licenseV2FileContent_d16c6f01de8d"
}

请求示例

{
"osType": "Android",
"packageName": "packageName_c1feaa37674a"
}

返回值示例

{
"mqtt": {
"clientId": "clientId_85d0dce8aeb8",
"username": "username_7ac4f031a58c",
"passwd": "passwd_2812c0b7c03d",
"hostUrl": "hostUrl_13aa00da6714",
"port": 0
},
"certificateBase64": "certificateBase64_387b151e87c7",
"certificateExtension": "certificateExtension_39722a673798",
"locationConfigInfos": [
{
"osType": "Android",
"provider": "Baidu",
"packageName": "packageName_ca89082a7fa0",
"appKey": "appKey_2b261167bbb2"
}
],
"ksAuthorizeInfo": {
"resourceType": "KS_V0/KS_V1/KS_V2",
"licenseV0Code": "licenseV0Code_ee05e23b990e",
"licenseV1FileContent": "licenseV1FileContent_fd01cecbda97",
"licenseV2FileContent": "licenseV2FileContent_d16c6f01de8d"
}
}