---
name: "sendCmdForRefreshDeviceLQI"
mode: "api"
versionRequirements:
  - { name: "@ray-js/ray", version: "1.7.60" }
async: true
title: "sendCmdForRefreshDeviceLQI - Send Command to Refresh LQI"
---

## sendCmdForRefreshDeviceLQI

> [VERSION] @ray-js/ray >= 1.7.60

> ⚡ **Supports Promise** — Returns a Promise when success / fail / complete callbacks are omitted.

### Description

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

### Parameters

| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `devId` | `string` | Yes | Sub-device ID |

### Return Value

Type: `Promise<boolean>`

Whether the command was issued successfully

### Examples

```typescript
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);
  }
};
```
