請求方式:GET
URL: http://api.onenet.hk.chinamobile.com/devices/status
參數名稱 | 格式 | 是否必須 | 說明 |
---|---|---|---|
devIds | string | 否 | 指定設備ID,多個用逗號分隔,最多1000個 |
參數名稱 | 格式 | 說明 |
---|---|---|
errno | int | 調用錯誤碼,為0表示調用成功 |
error | string | 錯誤描述,為“succ”表示調用成功 |
data | json | 介面調用成功之後返回的設備相關信息,見data描述表 |
data描述表
參數名稱 | 格式 | 說明 |
---|---|---|
total_count | int | 查詢結果中設備的數量 |
devices | array-json | 設備信息的json陣列,見devices描述表 |
devices描述表
參數名稱 | 格式 | 說明 |
---|---|---|
online | bool | 設備在線狀態 |
id | string | 設備ID |
title | string | 設備名 |
GET http://api.onenet.hk.chinamobile.com/devices/status?devlds=35282992,35271941 HTTP/1.1
{
"errno": 0,
"data": {
"devices": [{
"title": "test_device",
"online": false,
"id": "35282992"
}, {
"title": "test_device",
"online": false,
"id": "35271941"
}],
"total_count": 2
},
"error": "succ"
}