Multiprotocol Access Product Introduction QuickStart User Guide Development Guide
EDP TCP transparent transmission MQTT Modbus HTTP
FAQ

Batch query of device statuses

Request format: GET

URL: http://api.onenet.hk.chinamobile.com/devices/status

URL request parameter

Name Format Required or not Description
devIds string No Specify the device ID, separated by commas, max. 1000

Return Parameters

Name Format Description
errno int Call error code, where 0 means success.
error string Error description. “succ” means the call is successful.
data json Device-related information returned after interface is successfully called. See the Data Description Table.
Data Description Table
Name Format Description
total_count int Number of devices in the query result
devices array- json Json array of device information. See the description table of devices.
Description table of devices
Name Format Description
online bool Device online status
id string Device ID
title string Device name

Request Example

GET http://api.onenet.hk.chinamobile.com/devices/status?devIds=35282992,35271941 HTTP/1.1

Return Example

{
    "errno": 0,
    "data": {
        "devices": [{
            "title": "test_device",
            "online": false,
            "id": "35282992"
        }, {
            "title": "test_device",
            "online": false,
            "id": "35271941"
        }],
        "total_count": 2
    },
    "error": "succ"
}

个搜索结果,搜索内容 “

    0 个搜索结果,搜索内容 “