Getting Started
Official Site
Getting Started
Official Site
  • Document description
  • Read before you start

  • Light application development guide

  • Mobile application development guide

  • Cloud live development guide

  • Desktop application development guide

  • Third party development guide

  • Message push development guide

  • IoT things data model

  • HTTP interface

    • Development specification
    • API privacy policy
    • Postman interface simulation call
    • accessToken: Get administrator token
    • API request example
    • Account docking
    • Push configuration
    • Cloud storage service
    • Equipment management

      • Add device
      • Device query
        • listDeviceDetailsByIds: Batch query of device details
        • listDeviceDetailsByPage: Paging device details for querying
        • deviceOnline: Get device online status
        • unBindDeviceInfo: Unbound device information acquisition
        • checkDeviceBindOrNot: Query device binding status
        • bindDeviceChannelInfo: Obtain the detailed information of a single device channel
        • deviceVersionList: Get device version and upgradeable information
        • deviceOpenList: Paging to obtain the basic information of the channel for adding devices to the open platform
        • queryOpenDeviceChannelInfo: Obtain the basic information of the channel for adding devices to the open platform
        • deviceOpenDetailList: Get detailed device information in batches
        • deviceBaseList: Paging to obtain the basic information of the device channel added or shared by the easy4ip app
        • queryBaseDeviceChannelInfo: Get the basic information of the channel added or shared by the easy4ip app
        • deviceBaseDetailList: Get detailed information of devices added or shared by easy4ip app in batches
        • shareDeviceList: Paging to get the device list shared by the easy4ip app to the developer
        • upgradeProcessDevice: Get device upgrade status and progress
        • listDeviceAbility: Obtain the ability set of multiple devices, channels and accessories in batch
        • subAccountDeviceInfo: Obtain the capability set of multiple devices, channels and accessories in batch
        • subAccountDeviceList: Get the capability set of multiple devices, channels and accessories in batch
      • Device maintenance
    • Device configurat

    • Video equipment

    • Device message
    • Device live broadcast
    • Device lock access
  • Reference documents

On this page
Function details
Request address
request format
The sub-account token can be requested without permission
Incoming parameter description
Sample input
Return data field description
Sample output

Check Device Online Status - Imou Open Platform

deviceOnline: Get device online status

Function details

Get the online status of the specified device and all channels under the device.

Note: This interface cannot obtain the online status of devices that have been bound by others. For unbound devices, the returned result only indicates the online status of the device (not the given channel 0).

Request address

https://openapi-[DataCenter].easy4ip.com/openapi/deviceOnline

request format

Please refer to the Development Specification for the API request method and some authentication parameters such as sign calculation method

The sub-account token can be requested without permission

Incoming parameter description

Parameter nameParameter typeRequired or notDefault valueLegal valueParameter description
tokenStringYesAdministrator or sub-account accessToken
deviceIdStringYesDevice serial number

Sample input

{
    "system":{
        "ver":"1.0",
        "appId":"lcdxxxxxxxxx",
        "sign":"222317f687a11f4db0a1261e8151692c",
        "time":1603370654,
        "nonce":"0a95c2a0-5c6f-4e83-91ec-5723253416c7"
    },
    "id":"66363b83-c699-4513-b16b-2ee54fd62031",
    "params":{
        "deviceId":"TESTQWERXXXX",
        "token":"At_00000ad9e6e87f0142eb92e207aec46a"
    }
}

Return data field description

To
Field name Field type Field description
deviceId String Device serial number
onLine String Device online status, 0: means offline; 1: means online; 3: means upgrading; 4: means sleeping
channels channelId String Device channel number
onLine String Device online status, 0: means offline; 1: means online; 3: means upgrading; 4: means sleeping

Sample output

{
  "result":{
    "msg":"The operation was successful.",
    "code":"0",
        "data":{
            "channels":[
                {
                    "channelId":"0",
                    "onLine":"1"
                }
            ],
            "deviceId":"TESTQWERXXXX",
            "onLine":"1"
        }
    },
    "id":"66363b83-c699-4513-b16b-2ee54fd62031"
}
listDeviceDetailsByPage: Paging device details for querying
unBindDeviceInfo: Unbound device information acquisition