Check Doorsensor Firmware Upgrade

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

This API is used to request firmware upgrade information for multiple door sensors. If the server does not have the relevant data, it will return "Unknown". You need to call the relevant API in the app SDK to obtain the latest product model, hardware version number, and firmware version number, and then call this API again.

1 Request example

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

2 Request parameters

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYaccess Toke,refer to get access token
doorSensorIdIntYdoor sensor ID
modelNumStringNproduct model
hardwareRevisionStringNhardware version number
firmwareRevisionStringNfirmware version number
dateLongYcurrent time (timestamp in millisecond)

3 Response and example

ParametersTypeDescription
needUpgradeIntIs upgrading available: 0 - No, 1 - Yes, 2 - Unknown
firmwareInfoStringfirmware information
firmwarePackageStringfirmware package
versionStringlatest firmware version number