Enable Sub-devices¶
This topic notifies the edge that the specific sub-device belonging to this edge has been enabled on EnOS Cloud. EnOS Cloud will publish the enable device message to the edge asynchronously.
Downstream
Request TOPIC:
/ext/session/{productKey}/{deviceKey}/combine/enable
Reply TOPIC:
/ext/session/{productKey}/{deviceKey}/combine/enable_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": "yourProductKey",
"deviceKey": "yourDeviceKey"
}
],
"method": "combine.enable"
}
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 enabling a sub-device. |
productKey |
String |
Mandantory |
The product key of the sub-device. |
deviceKey |
String |
Mandantory |
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 |
The detailed returned information in JSON format. |