fitDeleteUnlockMethod(id: number, lockDevId?: string)
Requires:
@ray-js/lock-sdk≥1.2.0
Description
Delete an unlock method on the accessory side
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Cloud opModeId |
lockDevId | string | No | Target lock devId (can be omitted when only one lock is bound) |
Return Value
Type: Promise<void>
None
Error Code
| Error Code | Error Message |
|---|---|
1052 | Previous operation on the same accessory is still in progress |
1014 | Deleting a dp is not supported / This dpCode is not supported |
1001 | Device is offline |
1002 | Operation timed out |
1028 | Device reported deletion failure |
1029 | Device reported deletion failure (admin password is in use) |