sendCmdForRefreshDeviceLQI(devId: Object)

Requires:
@ray-js/ray≥1.7.60
import { gateway } from '@ray-js/ray';

const { sendCmdForRefreshDeviceLQI } = gateway;

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

Description

Issue an update LQI command to refresh signal quality values of gateway sub-devices

Parameters

PropertyTypeRequiredDescription
devIdstringYesSub-device ID

Return Value

Type: Promise<boolean>
Whether the command was issued successfully

Examples

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

const refreshLQI = async () => {
  try {
    const success = await gateway.sendCmdForRefreshDeviceLQI({
      devId: 'sub_device_001',
    });
    console.log('Sent refresh LQI command:', success);
  } catch (err) {
    console.error('Send failed:', err);
  }
};