sendCmdForRefreshDeviceLQI(devId: Object)

版本要求:
@ray-js/ray≥1.7.60
import { gateway } from '@ray-js/ray';

const { sendCmdForRefreshDeviceLQI } = gateway;

// Promise 调用
try {
  const res = await sendCmdForRefreshDeviceLQI({ ...params });
  console.log(res);
} catch (err) {
  console.log(err.errorMsg);
}

描述

下发更新 LQI 指令,用于刷新网关子设备的信号质量值

参数

属性类型必填说明
devIdstring是子设备 ID

返回值

类型:Promise<boolean>
是否下发成功

示例代码

import { gateway } from '@ray-js/ray'

const refreshLQI = async () => {
  try {
    const success = await gateway.sendCmdForRefreshDeviceLQI({
      devId: 'sub_device_001',
    });
    console.log('下发刷新LQI指令:', success);
  } catch (err) {
    console.error('下发失败:', err);
  }
};