获取设备配置信息
注意不是业务功能配置数据
请求
iot/device/profile
| 参数 | 必填 | 类型 | 说明 |
|---|---|---|---|
| osType | 是 | Enum | 查询定位配置-系统类型 |
| packageName | 否 | String | 查询定位配置-包名 |
点击查看osType枚举值
| 枚举值 | 说明 |
|---|---|
| Android | 安卓 |
响应
| 参数 | 必填 | 类型 | 说明 |
|---|---|---|---|
| mqtt | 是 | Object | MQTT配置信息 |
| certificateBase64 | 是 | String | 证书Base64编码 |
| certificateExtension | 是 | String | 证书扩展名 |
| locationConfigInfos | 是 | JsonArray | 位置配置信息列表 |
| ksAuthorizeInfo | 否 | Object | 旷视人脸授权信息 |
点击查看mqtt对象
| 参数 | 必填 | 类型 | 说明 |
|---|---|---|---|
| clientId | 是 | String | MQTT客户端ID |
| username | 是 | String | 用户名 |
| passwd | 是 | String | 密码 |
| hostUrl | 是 | String | 主机URL |
| port | 是 | Number | 端口号 |
点击查看locationConfigInfos结构信息
| 参数 | 必填 | 类型 | 说明 |
|---|---|---|---|
| osType | 是 | Enum | 系统类型 |
| provider | 是 | Enum | 位置提供商 |
| packageName | 是 | String | 包名 |
| appKey | 是 | String | 应用密钥 |
provider 枚举值
| 枚举值 | 说明 |
|---|---|
| Baidu | 百度地图 |
| Gaode | 高德地图 |
点击查看ksAuthorizeInfo对象
| 参数 | 必填 | 类型 | 说明 |
|---|---|---|---|
| resourceType | 是 | String | 资源类型 KS_V0KS_V1KS_V2 |
| licenseV0Code | 否 | String | v0版本激活码,resourceType为KS_V0时存在 |
| licenseV1FileContent | 否 | String | v1版本文件内容,resourceType为KS_V0或KS_V1时存在 |
| licenseV2FileContent | 否 | String | v2版本文件内容,resourceType为KS_V1或KS_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"
}
}