Return a JSON style result. The JSON format is:
{ /*OBJECT*/ | |||||||||||||||||||||
"Result": NUMBER | 200 means OK, other error code meanings are similar to HTTP Response. | ||||||||||||||||||||
"Status": "STRING" | Status message. Responsing result status of API executive, if there errors, it will describe reasons. | ||||||||||||||||||||
"Data": { /*OBJECT*/ | Upgrading details: | ||||||||||||||||||||
"ErrorTag": "STRING" | Indicate the upgrading result:
| ||||||||||||||||||||
"Requirement": "STRING" | This indicates the next actions you should do after upgrading done:
| ||||||||||||||||||||
} | |||||||||||||||||||||
} |
NOTE: Depends on the firmware file size and network speed, the upgrading will take about several seconds or 1-2 minutes. Not like otherAPIs, you must wait a long time to get the response, we suggest this timeout value must be >=30 seconds.
Device HTTP API, v1.0
Copyright (c) 2016.