getDeviceConfig(params: GetDeviceConfigParams)
版本要求:
@tuya-miniapp/cloud-api≥1.0.5
描述
获取设备服务配置项
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| 是 | 请求体 |
返回值
类型:Promise<GetDeviceConfigResult & Object↓>
配置查询结果,并附带请求上下文中的 uuid(见实现返回类型)
| 属性 | 类型 | 说明 |
|---|---|---|
uuid | string | 设备 uuid |
引用对象
type
GetDeviceConfigResult| 属性 | 类型 | 描述 |
|---|---|---|
hadService | boolean | 是否已开通相关服务 |
switchState | 0 | 1 | 总开关状态(0 / 1) |
configItemList | DeviceServiceConfigItemDto[] | 配置项列表 |
合法值
GetDeviceConfigParams.serviceBusinessType
| 值 | 说明 | 最低版本 |
|---|---|---|
aiSmartFreeEvent | - | - |
aiSmartFreeEventImage2Text | - | - |
GetDeviceConfigResult.switchState
| 值 | 说明 | 最低版本 |
|---|---|---|
0 | - | - |
1 | - | - |