Home / Docs Center / Platform API / DeviceOnline Status Sync

DeviceOnline Status Sync

Platform API · Self-hosted Cloud Integration

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.

Request a Quote

Fill in the form and we will get back with a quote and proposal within 1 business day.

Click "Generate inquiry email" to open your mail client with the body pre-filled. If no mail client is configured, click "Copy" and paste it into webmail — recipient: sunshiyang@xstrive.com.