NB-IoT Suite Product Introduction QuickStart User Guide Device Development Guide Application Development Guide Best Practices FAQ Service agreement Update Log

Query device condition in batch

Request format: GET

URL: http(s)://api.heclouds.com/devices/status

I only want to see examples!!!

Url parameter

Parameter NameFormatRequired?Description
devIdsstringYesDevice idid of more than one device is spaced with commaat most 1000 devices

Return Parameters

NameFormatDescription
errnointCall error code, where 0 means success.
error stringError description, where "succ" means success.
datajsonDevice dependent message returned after the interface is successfully invoked; see Data Description Table

Data Description Table

NameFormatDescription
total_countintTotal
devicesarray-jsonJson data array of the device condition; see devices description list.

Description table of devices

NameFormatDescription
idstringDevice id
titlestringDevice name
onlineboolOnline state

Request Example

GET http://api.heclouds.com/devices/status?devIds=1221,12233,1123 HTTP/1.1
api-key: WhI*************v1c=
Content-Type: application/json

Return Example

{
    "errno": 0,
    "data": {
        "total_count":121,
        "devices":[
            {
                "id":1221,
                "title":"device1",
                "online":false
            },
            {
                "id":12333,
                "title":"device2",
                "online":true
            },
            ...
        ]
    },
    "error": "succ"
}

< query device information in batch

Query device information according to IMEI >

个搜索结果,搜索内容 “

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