Modify unauthorized alarm information

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

Configure unauthorized alarm messages.

Once this function is enabled, the smart lock will immediately lock if the number of unauthorized unlocking attempts reaches a specified number.

The lock's characteristic value of 93 indicates that the unauthorized alarm function is supported.

1 Request example

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

2 Request parameters

NameTypeRequiredDescription
clientIdStringYClient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
typeIntY1- Update via Bluetooth; 2- Update via gateway or Wi-Fi lock
lockIdStringYLock ID
unauthorizedAttemptAlertFlagIntYUnauthorized alarm, 1 - On, 0 - Off
unauthorizedAttemptAlertCountIntYUnauthorized alerts, number of failures, 0 indicates off.
unauthorizedAttemptAlertLockTimeIntYUnauthorized alarm, lock time, unit - seconds
unauthorizedAttemptAlertPwdIntNUnauthorized alarm, password flag: 1 - on, 0 - off
unauthorizedAttemptAlertCardIntNUnauthorized alarm, IC card flag: 1 - On, 0 - Off
unauthorizedAttemptAlertFingerprintIntNUnauthorized access alarm, fingerprint indicator, 1 - open, 0 - closed
dateLongYCurrent time (timestamp, in milliseconds)

3 Response and example

ParameterTypeDescription
errcodeIntError code
errmsgStringError message
descriptionStringError Description