Modify lock settings

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

Modify lock settings, including: 2-Privacy lock、3-Temper alert、4-Reset button、6-Lock sound、7-Open direction、8-Sound volume、10-Wifi lock's power saving(Note: Wifi lock's power saving mode can only be set via bluetooth, it can't be set it via gateway).

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
lockIdIntYLock ID, generated by Lock init
typeIntYThe item to be set:2-Privacy lock、3-Tamper alert、4-Reset button、6-Lock sound、7-Open direction、8-Sound volume、10-Wifi lock's power saving、11-Door unclosed alarm time setting
Note: Wifi lock's power saving mode can only be set via bluetooth, it can't be set it via gateway.
valueIntYValue: 1-on、2-off;
Open direction:1-left open、2-right open;
Sound volume: 1 to 5
Door unclosed alarm time: In seconds, 0 mean off, need door sensor
changeTypeInt Method:
1-via phone bluetooth, you should call APP SDK method first
2- via gateway or WiFi lock, you can call this api directly if it's a WiFi lock or it's connected to gateway
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
errcodeIntError code
errmsgStringError message