Updated on 2022-09-01 GMT+08:00

Response for Updating the Gateway Subdevice Status

Topic

Topic

/v1/devices/{gatewayId}/topo/updateResponse

Publisher

IoT platform

Subscriber

Edge device

Parameter Description

Field

Mandatory/Optional

Type

Description

mid

Mandatory

Integer

Command ID.

statusCode

Mandatory

Integer

Result code for request processing. The options are as follows:

  • 0: success
  • non-0: failure

statusDesc

Optional

String

Response status description.

data

Optional

List< UpdateStatusRsp >

Device status information after being updated.

UpdateStatusRsp struct description

Field

Mandatory/Optional

Type

Description

statusCode

Mandatory

Integer

Result code for request processing. The options are as follows:

  • 0: success
  • non-0: failure

statusDesc

Optional

String

Result description.

deviceId

Mandatory

String

Unique device ID generated by the IoT platform, which corresponds to the device client ID.

Example

{
       "data": [{
              "deviceId": "D59eGSxy",
              "statusCode": 0
       }],
       "mid": 9,
       "statusCode": 0
}