Disable Sub-devices


This topic notifies the edge that the specific sub-device belonging to this edge has been disabled on EnOS Cloud. EnOS Cloud will publish the disable device message to the edge topic asynchronously.


Downstream

  • Request TOPIC: /ext/session/{productKey}/{deviceKey}/combine/disable

  • Reply TOPIC: /ext/session/{productKey}/{deviceKey}/combine/disable_reply

Note

The productKey and deviceKey in the TOPIC are the credentials of the edge.

Sample Request Format

{
    "id": "123",
    "version": "1.0",
    "params": [
    {
      "productKey": "xxx",
      "deviceKey": "xxx"
    }
    ],
    "method": "combine.disable"
}

Sample Response Format

{
  "id": "123",
  "code": 200,
  "data": {}
}

Request Parameter Description​

Parameters

Type​

Mandatory/Optional

Description

id

Long

Optional

The message ID. It is a reserved parameter that is reserved for future use.

version

String

Mandatory

The version of the protocol. The current version is 1.0.

params

Array

Mandatory

The parameters used for disabling a sub-device.

productKey

String

Mandatory

The product key of the sub-device.

deviceKey

String

Mandatory

The device key of the sub-device.

method

String

Mandatory

The request method.

Response Parameter Description

Parameter

Type

Mandatory/Optional

Description

code

Integer

Mandatory

The return code. “200” indicates that the request operation is executed successfully.

data

JSON

Optional

Detailed returned information in JSON format.