Upgrade recheck

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

When "unkown" is returned requesting Upgrade check, you have to call APP SDK method to get new lockData, and request this API to see whether there is any upgrade for a lock.

Notice: Please make sure the lockData is from the APP SDK method.

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
lockDataStringYLock data, get from APP SDK
dateLongYCurrent time (timestamp in millisecond)

3 Response and example

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