https://api.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.
xxxxxxxxxxcurl --location --request GET 'https://api.sciener.com/v3/gateway/upgradeCheck?clientId=4773aa036f7f49c68d876bb4be85c80c&accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f&gatewayId=78979&date=1626674054000'| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | client_id from Create application |
| accessToken | String | Y | Access token,refer to: Get access token |
| gatewayId | Int | Y | Gateway ID |
| date | Long | Y | Current time (timestamp in millisecond) |
| Parameter | Type | Description |
|---|---|---|
| needUpgrade | Int | Is upgrading available: 0-No, 1-Yes, 2-Unknown |
| firmwareInfo | String | Firmware info, will be used in APP SDK |
| version | String | Latest firmware version |
xxxxxxxxxx{"needUpgrade": 1,"firmwareInfo":{"modelNum":"SN227","hardwareRevision":"1.1.2","firmwareRevision":"1.1.20.1027"},"version":"1.1.21.1027"}