Updating the Gateway Subdevice Status
Topic
| Topic | /v1/devices/{gatewayId}/topo/update |
|---|---|
| Publisher | Edge device |
| Subscriber | IoT platform |
Parameter Description
| Field | Mandatory/Optional | Type | Description |
|---|---|---|---|
| mid | Mandatory | Integer | Command ID. |
| deviceStatuses | Mandatory | List<DeviceStatus> | Device status list. The list contains 1 to 100 records. |
deviceStatus struct description
| Field | Mandatory/Optional | Type | Description |
|---|---|---|---|
| deviceId | Mandatory | String | Unique device ID generated by the IoT platform, which corresponds to the device client ID. |
| status | Mandatory | String | Subdevice status. The options are as follows:
|
Example
{
"deviceStatuses": [{
"deviceId": "D59eGSxy",
"status": "ONLINE"
}],
"mid": 9
} Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.