修改未授权报警信息

https://api.sciener.com/v3/lock/updateUnauthorizedAttemptAlert

设置未授权报警信息。

功能开启后,若开锁失败次数达到指定次数,智能锁将马上锁定。

锁的特征值93,表示支持未授权报警功能。

1 HTTP请求方法及示例

POST, ContentType:application/x-www-form-urlencoded

2 参数说明

名称类型是否必需描述
clientIdStringY创建应用分配的client_id
accessTokenStringY访问令牌,通过获取访问令牌接口获取
typeIntY1-蓝牙方式更新,2-通过网关或者WIFI锁
lockIdStringY锁ID
unauthorizedAttemptAlertFlagIntY未授权报警,1-打开,0-关闭
unauthorizedAttemptAlertCountIntY未授权报警,失败次数,0表示关闭
unauthorizedAttemptAlertLockTimeIntY未授权报警,锁定时间,单位-秒
unauthorizedAttemptAlertPwdIntN未授权报警,密码标志位,1-打开,0-关闭
unauthorizedAttemptAlertCardIntN未授权报警,IC卡标志位,1-打开,0-关闭
unauthorizedAttemptAlertFingerprintIntN未授权报警,指纹标志位,1-打开,0-关闭
dateLongY当前时间(时间戳,单位毫秒)

3 返回参数及示例

参数类型描述
errcodeInt错误码
errmsgString错误信息
descriptionString错误描述