checkRemoteEnabled()

Requires:
@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 Code

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

Examples

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