Report version

Request format: POST

URL: http://ota.heclouds.com/ota/device/version

The interface needs to be called to report version number to the platform when the device is upgraded for the first time.

I only want to see examples!!!

http header

Param-nameFormatRequired or notDescription
Content-TypestringYesMust be application/json.
AuthorizationstringYesSecurity authentication information

http request parameter

Param-nameFormatRequired or notDescription
dev_idlongYesDevice id

http request contents

Param-nameFormatRequired or notDescription
f_versionstringNoModule version number
s_versionstringNoApplication service version number

Return Parameter

Param-nameFormatDescription
errnointCall error code, where 0 means success.
error stringError description, where “succ” means success.

Description

  1. If OTA is required to be used for the upgrade of the device, the interface is needed to be called to report current version of the device;

  2. The platform will bind corresponding version number and device for storage.

  3. If there is an upgrade task for the device, and the version reported now is the target version of the task, the platform will set the upgrade task to “completed” status.

  4. The version number shall consist of less than or equal to 20 characters, and be limited to one or a combination of numbers, letters, dashes, dots, and underlines.

Request Example

POST http://ota/device/version?dev_id=32981907
Authorization:version=2018-10-31&res=products/33704&et=2529385073&method=sha1&sign=RccQWjT1n5OJ2khw3M4aPckkiFs=
Content-Type:application/json
Host: api.heclouds.com

http request parameter example

{

  "f_version":"1.0", //module version No.
  "s_version":"2.0" //application software version No.

}

Return Example

{

    "errno": 0,

    "error":“succ”

}

个搜索结果,搜索内容 “

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