OneNET IoT Platform Platform Introduction Introduction Manual Guidline for Device Development Guideline for Application Development
API
API Usage API List SDK MQTT LwM2M EDP Modbus TCP
HTTP Push

# Batch Inquire Device Status

Request Method: GET

URL: http://iot.zong.com.pk:8000/devices/status

URL Request Parameter

Parameter Name Format Required Description
devIds string no specify device ID, multiple separated by commas, up to 1000

Return Parameter

Parameter Name Format Description
errno int code for call error , 0 indicates call is successful
error string error description, "succ" indicates call is successful
data json device related information returned after successful interface call, see data description table
data Description Table
Parameter Name Format Description
total_count int number of devices in query result
devices array-json json array of device information, see devices description table
devices Description Table
Parameter Name Format Description
online bool device online status
id string device ID
title string device name

Example of Request

GET http://iot.zong.com.pk:8000/devices/status?devIds=35282992,35271941 HTTP/1.1

Example of Return

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

results matching ""

    No results matching ""