## 接口调用请求说明:
http请求方式:POST
请求URL:https://edroom.rolink-power.com/api/web/rocoi/deviceInfo
## header参数说明
| 参数 | 是否必须 |说明|
| --- | --- |--- |
| Ly-Api-Version|是 |接口版本号,固定为:1.0|
|Ly-Token|是|数据获取凭证|
|Ly-Device-Type|是|设备类型,固定为:pc|
## 参数说明
| 参数 | 是否必须 |说明|
| --- | --- |--- |
| dev_id|是 |设备编码|
|product_key|是|产品KEY|
## 返回说明
正常情况下,系统会返回下述JSON数据包:
```
{
"code": 1,
"msg": "数据获取成功",
"data": {
"id": 7,
"rmu_id": "102021070000",
"dev_id": "012021070100",
"inspect": 0,
"alias_name": "电能表",
"create_time": 1621932641,
"update_time": 1622441492,
"A_PHASE_CURRENT": "0.00",
"BC_LINE_VOLTAGE": "387.7",
"AC_LINE_VOLTAGE": "388.7",
"A_PHASE_VOLTAGE": "224.9",
"B_PHASE_VOLTAGE": "223.7",
"C_PHASE_VOLTAGE": "224.0",
"B_PHASE_CURRENT": "0.00",
"C_PHASE_CURRENT": "0.00",
"ACTIVE_POWER": "0.00",
"AB_LINE_VOLTAGE": "388.4",
"POWER_FACTOR": "0.00",
"A_ACTIVE_POWER": "0.00",
"B_ACTIVE_POWER": "0.00",
"C_ACTIVE_POWER": "0.00",
"APPARENT_POWER": "0.00",
"REACTIVE_POWER": "0.00",
"A_FREQUENCY": "50.01",
"B_FREQUENCY": "50.00",
"C_FREQUENCY": "50.01",
"PT_RATIO": 1,
"CT_RATIO": 1,
"CUMULATIVE_ACTIVE_ENERGY": "114.13",
"CUMULATIVE_REACTIVE_ENERGY": "148.73",
"POSITIVE_ACTIVE_ENERGY": "114.07",
"NEGATIVE_ACTIVE_ENERGY": "0.06",
"POSITIVE_REACTIVE_ENERGY": "148.65",
"NEGATIVE_REACTIVE_ENERGY": "0.08",
"CUM_FAULT": 0,
"MECH_FAULT": 0
}
}
```
## 参数说明
| 参数 | 说明 |
| --- | --- |
| code | 返回码 1-成功 0-失败 |
|msg|返回消息说明|
|data|返回数据|
## data结构体说明
| 参数 | 说明 |
| --- | --- |
| id| 数据ID |
|rmu_id|网关编码|
|dev_id|设备编码|
|inspect|巡检状态 0-正常 1-故障|
|alias_name|设备别名|
|create_time|创建时间|
|update_time|更新时间|
|A_PHASE_CURRENT |A相电流|
|BC_LINE_VOLTAGE |BC线电压|
|AC_LINE_VOLTAGE |AC线电压|
|A_PHASE_VOLTAGE |A相电压|
|B_PHASE_VOLTAGE |B相电压|
|C_PHASE_VOLTAGE |C相电压|
|B_PHASE_CURRENT |B相电流|
|C_PHASE_CURRENT |C相电流|
|ACTIVE_POWER |总有功功率|
|AB_LINE_VOLTAGE |AB线电压|
|POWER_FACTOR |总功率因数|
|A_ACTIVE_POWER |A相有功功率|
|B_ACTIVE_POWER |B相有功功率|
|C_ACTIVE_POWER |C相有功功率|
|APPARENT_POWER |总视在功率|
|REACTIVE_POWER |总无功功率|
|A_FREQUENCY |A相频率|
|B_FREQUENCY |B相频率|
|C_FREQUENCY |C相频率|
|PT_RATIO |PT变比|
|CT_RATIO |CT变比|
|CUMULATIVE_ACTIVE_ENERGY |总有功电能|
|CUMULATIVE_REACTIVE_ENERGY|总无功电能|
|POSITIVE_ACTIVE_ENERGY |正向有功电能|
|NEGATIVE_ACTIVE_ENERGY |反向有功电能|
|POSITIVE_REACTIVE_ENERGY |正向无功电能|
|NEGATIVE_REACTIVE_ENERGY |反向无功电能|
|CUM_FAULT |通信状态 0-正常 1-故障|
|MECH_FAULT|故障状态 0-正常 1-异常|
## 调用示例
![](https://img.kancloud.cn/70/34/7034d836d7de523f3d37cba6d211fa4f_1400x688.png)