|
c#调用能耗系统API接口 获取获取设备信息
以下是设备商提供的
服务器 IP:121.40.202.** 端口25083
获取设备信息
POST /elec/pc/search/devices [done]
request
{
"auth_id": "",
"offset": Number,
"page_size": Number,
"order": "asc" or "desc",
"with_group_percentage": 0 | 1 //v4,默认为0,不需要获取设备相对应的%占比值
//v4,取值1为需要获取设备相对应的%占比值
}
response
{
"result": "ok",
"total_count": Number,
"no_parent_count": Number, // added in v2
"items": [
{
"id": Number,
"id_str": String, // for js, added
"device_id": "",
"parent_id": Number,
"parent_id_str": String // for js, added
"concentrator_id": Number,
"concentrator_id_str": String // for js, added
"description": "某某楼某某层",
"amount": Number //电量值
"warn_level_1": Number //一级告警电流值
"warn_level_2": Number //二级告警电流值
"auto_drop": 0 | 1 //是否自动断开 0为否
"auto_drop_delay": Number // xx秒后断开
"group_percentage": float, 0 - 1//v4 该电表被不同部门占用的百分比累加和
}
]
}
|
|