Open Platform
Skip to content

Gateway upgrade check ​

https://cnapi.sciener.com/v3/gateway/upgradeCheck

Check if the gateway have a new version of firmware base on the three parameters: modelNum、hardwareRevision、firmwareRevision uploaded to cloud server when addding gateway.

Refer to APP SDK DEMO for detailed steps of gateway firmware upgrade.

1 Request example ​

javascript
curl --location --request GET 'https://cnapi.sciener.com/v3/gateway/upgradeCheck?clientId=4773aa036f7f49c68d876bb4be85c80c&accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f&gatewayId=78979&date=1626674054000'

2 Request parameters ​

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
gatewayIdIntYGateway ID
dateLongYCurrent time (timestamp in millisecond)

3 Response and example ​

ParameterTypeDescription
needUpgradeIntIs upgrading available: 0-No, 1-Yes, 2-Unknown
firmwareInfoStringFirmware info, will be used in APP SDK
versionStringLatest firmware version
{
    "needUpgrade": 1, 
    "firmwareInfo": 
    {
        "modelNum":"SN227",
        "hardwareRevision":"1.1.2",
        "firmwareRevision":"1.1.20.1027"
    },
    "version":"1.1.21.1027"
}
CopyRight © 2012-2026 Sciener.All Rights Reserved