agreeOpenDoor

Requires:
@ray-js/lock-sdk≥1.0.0

Method signature
agreeOpenDoor(option?: )

Description

Approve remote door-open request (used by Wi‑Fi Pro solution)

Parameters

ParameterTypeRequiredDescription
NoApprove-to-open call options (e.g., timeout for waiting for device report)

Return Value

Type: Promise<void>
None (resolves when done)

Error Code

Error CodeError Message
1052Previous operation on the same device is still in progress
1002Operation timed out
1003Remote unlock failed (cloud invocation error)
1004Device reported unlock failure
1005Remote unlock failed (key invalidated)
1006Key usage limit reached
1007Key not within validity period
1008Invalid key

Examples

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