fitAddPassword(params: FitAddPasswordParams)
Requires:
@ray-js/lock-sdk≥1.2.0
Description
Add a password on the accessory side
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Add parameter |
Return Value
Type: Promise<void>
None (resolves after the cloud addFitOpenMode succeeds)
Error Code
| Error Code | Error Message |
|---|---|
1054 | Password is empty |
1014 | This unlock method type is not supported |
1088 | Accessory is not bound to a lock |
1089 | Target lock not found |
1002 | Operation timed out |
1015 | ~1025 Device-reported add failure (status 0~10) |
1026 | Device-reported add failure (status 0xfe) |
1053 | Failed to sync adding the unlock method to the cloud |