getPanelAgentMemorySwitch(params: GetPanelAgentMemorySwitchParams)

版本要求:
@tuya-miniapp/cloud-api≥1.0.6

描述

查询记忆开关状态。

参数

参数类型必填说明
是请求体

返回值

类型:Promise<GetPanelAgentMemorySwitchResult>
GetPanelAgentMemorySwitchResult(字段含义见类型定义与 minituya 返回参数)

引用对象

typeGetPanelAgentMemorySwitchResult
属性类型描述
summaryOpenboolean总结开关
memoryOpenboolean记忆开关

示例代码

请求示例

import { getPanelAgentMemorySwitch } from '@tuya-miniapp/cloud-api';

const params = {
  devId: 'your_device_id',
};

getPanelAgentMemorySwitch(params)
  .then(result => {
    console.log('记忆开关状态:', result);
  })
  .catch(error => {
    console.error('获取记忆开关状态失败:', error);
  });

返回示例

{
  "summaryOpen": true,
  "memoryOpen": true
}