Deleting Sub-Devices


This topic notifies the edge that the specific sub-device belonging to this edge has been deleted from EnOS Cloud. EnOS Cloud will publish the delete devices message to the edge asynchronously.


Downstream

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

  • Reply TOPIC: /ext/session/{productKey}/{deviceKey}/combine/delete_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.delete"
}

Sample Response Format


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

Request Parameter Description​


Parameters

​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

Array

Mandatory

The parameters used for deleting 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

Description

code

String

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

data

JSON

Detailed returned information in JSON format.