Upgrade check

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

Check to see whether there is any upgrade for a lock. If there is no version info on the server, returns 'unknown'. In this case, you need to call APP SDK method to get lockData, and then request cloud API: Upgrade recheck to recheck for upgrading.

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
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

ParameterTypeDescription
needUpgradeIntIs upgrading available: 0-No, 1-Yes, 2-Unknown
firmwareInfoStringLock firmware info
firmwarePackageStringFirmware package
versionStringLatest firmware version