Home / Docs Center / Platform API / DeviceOnline Status Sync
DeviceOnline Status Sync
Project: Platform API | page_id: 1703
[TOC]
Brief Description
- Sends a status notification when the device goes online or offline
Request URL
Provided by the customer
Request Method
- POST
URL Parameters
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| - | - | - | - |
Body Parameters
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| id | Yes | string | Device serial number |
| status | Yes | number | Device status: 0 offline, 1 online |
Request Body Example
{
"serial number 1": 0,
"serial number 2":1,
}
Return Example
{
"code": 0,
"msg": ""
}
Return Parameter Description
| Parameter Name | Type | Description |
|---|---|---|
| code | number | Error code, 0 means success, >0 means failure |
| msg | string | Failure information |
Remarks
- The status corresponding to the serial number: 0 means offline, 1 means online
Didn't find what you need?Contact us,Talk to our engineers directly.