Report status

Request format:POST

URL: http//ota.heclouds.com/ota/south/report

When using the API, it is needed to be called twice. Download-related status code shall be reported first (Result=1xx), and then upgrade-related status code shall be reported (Result=2xx).

I only want to see examples!!!

http header

Name Format Required or not Description
Authorization string Yes Security authentication information

http request parameter

Name Format Required or not Description
dev_id long Yes Device id
token string Yes Detect the token returned by the upgrade task.

http body content

Name Format Required or not Description
result int Yes Please refer to result explanation for details.

Return Parameter

Name Format Description
errno int Call error code, please refer to the description of error code.
error string Error description, where “succ” means success.

result explanation

result CodeDescriptionresult CodeDescription
101Upgrade package downloaded successfully102Download failed, insufficient space
103Download failed, memory overflow104Download failed, download request timed out
105Download failed, battery low106Download failed, weak signal
107Download failed, unknown exception--
201Upgrade succeed202Upgrade failed, battery low
203Upgrade failed, memory overflow204Upgrade failed, inconsistent version
203Upgrade failed, memory overflow204Upgrade failed, inconsistent version
205Upgrade failed, MD5 verification failed206Upgrade failed, unknown exception
207Maximum number of times of retry reached208Device upgrade expired

Error Code Description

Error CodesDescription
0Information reported successfully.
1Information report failed, token authentication failed
2Report failed, status code reported cannot be recognized.
20Information report failed, upgrade task completed.
21Invalid operation, sdk logic error.
22Information report failed, upgrade task cancelled.
24Request content result error.

Request parameter example

{
    "result": 101

}

Return Example

{
    "errno": 0,
    "error": "succ"

}

个搜索结果,搜索内容 “

    0 个搜索结果,搜索内容 “