fitStartAddUnlockMethod
版本要求:
@ray-js/lock-sdk≥1.2.0
方法签名
fitStartAddUnlockMethod(params: )描述
配件端启动多阶段添加开锁方式(指纹/门卡/人脸 等)。
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| 是 | 启动参数 |
返回值
类型:Promise<FitStartAddUnlockMethodResult>
{ total }:总步骤数;后续步骤通过 onFitAddUnlockMethod 推送
FitStartAddUnlockMethodResult
| 属性 | 类型 | 说明 |
|---|---|---|
total | number | 总步骤数(设备返回) |
错误码
| 错误码 | 错误信息 |
|---|---|
1014 | 不支持该开锁方式类型 |
1001 | 设备不在线 |
1088 | 配件未绑定门锁 |
1089 | 未找到目标门锁 |
1002 | 操作超时 |
1015 | ~1025 设备上报启动失败(status 0~10) |
1026 | 设备上报启动失败(status 0xfe) |
1027 | 设备上报未知阶段 |
合法值
FitStartAddUnlockMethodParams.type
| 值 | 说明 | 最低版本 |
|---|---|---|
finger | - | - |
face | - | - |
password | - | - |
card | - | - |
fingerVein | - | - |
hand | - | - |
eye | - | - |