Disconnecting a Sub-Device


You can disconnect a sub-device from EnOS Cloud via MQTT.


Upstream

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

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

Sample Request Format


{
 "id": "123",
 "version":"1.0",
 "params": {
    "productKey": "xxxxx",
    "deviceKey": "xxxxx"
 },
 "method":"combine.logout"
}

Sample Response Format


{
 "id": "123",
 "code": 200,
 "message": "success",
 "data": {
      "productKey": "xxxxx",
      "deviceKey": "xxxxx"
  }
}

Request Parameter Description


Parameter

Type

Mandatory/Optional

Description

id

String

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

List

Mandatory

The parameters used for disconnecting sub-devices from EnOS Cloud.

deviceKey

String

Mandatory

The device key of the sub-device.

productKey

String

Mandatory

The product key of a sub-device.

method

String

Mandatory

The request method.

Response Parameter Description


Parameter

Type

Description

code

Integer

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

message

String

The response message.

data

JSON

The detailed returned information in JSON format.