openDoor(option?: OpenDoorCallOptions)
Requires:
@ray-js/lock-sdk≥1.0.0
Description
Unlock
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| No | Unlock call options (e.g., timeout for waiting for device report) |
Return Value
Type: Promise<void>
None
Error Code
| 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 |
1002 | Operation timed out |
1003 | Remote unlocking failed (cloud invocation error) |
1004 | Device reported unlock failure |
1005 | Remote unlocking failed (key invalidated) |
1006 | Key usage limit exhausted |
1007 | Key is outside its validity period |
1008 | Incorrect key |