本页目录

openDeviceGWSubSearchConfigure(params?: GwIdParams)

版本要求:
@ray-js/ray≥1.7.60

描述

打开网关面板搜索配网页面,用于搜索并添加子设备

参数

参数类型必填说明
否网关参数

返回值

类型:Promise<void>
void

示例代码

import { openDeviceGWSubSearchConfigure } from '@ray-js/ray';

const openSearchPage = async () => {
  try {
    await openDeviceGWSubSearchConfigure({ gwId: 'gateway_001' });
    console.log('已打开搜索配网页面');
  } catch (err) {
    console.error('打开失败:', err);
  }
};

注意事项

  • IDE 模拟器与真机调试环境当前无法使用