---
name: "checkRemoteEnabled"
mode: "api"
versionRequirements:
  - { name: "@ray-js/lock-sdk", version: "1.0.0" }
title: "checkRemoteEnabled - Check if remote lock/unlock is available."
summary: "Check if remote lock/unlock is available."
---

## checkRemoteEnabled

> [VERSION] @ray-js/lock-sdk >= 1.0.0

### Description

Check whether (Wi‑Fi) remote unlocking is currently allowed.

### Parameters

None


### Return Value

Type: `Promise<void>`

None

### Error Codes

| Error Code | Error Message |
| --- | --- |
| `1001` | Device is offline |
| `1064` | Non‑Thread devices do not support LAN lock/unlock |
| `1045` | Remote unlocking not supported |
| `1046` | Remote unlocking not enabled |
| `1047` | No permission to unlock |

### Examples

#### Example

```ts
import { checkRemoteEnabled } from '@ray-js/lock-sdk';
await checkRemoteEnabled();
```
