复制 Markdown查看 MarkdownsendCmdForRefreshDeviceLQI(devId: Object)版本要求:@ray-js/ray≥1.7.60Promise该方法支持 Promise 调用,不传 success / fail / complete 回调时返回 Promiseimport { 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); } };上一页openDeviceGWSubSearchConfigure下一页fetchDeviceFileDetail