Query the current output active power of Inverters or other power generation Device
The interface will return the last output active power obtained from the Device on the same day
| Parameter | Description | Required |
|---|---|---|
| action | queryDeviceActiveOuputPowerCurrent | True |
| pn | Datalogger number | True |
| devcode | Device protocol encoding | True |
| devaddr | Device address (485 bus) | True |
| sn | Device serial number | True |
response:
| Parameter | Description | Required |
|---|---|---|
| val | Output active power, Standardized units | True |
| ts | Time of generating active power output(The time zone where the Device is located), format: yyyy-mm-dd hh:mi:ss | True |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"val":"5000.0001",
"ts":"2016-12-31 18:30:00"
}
}
Possible errors:
| Response error code | Description | Details |
|---|---|---|
| 0x0006 | ERR_FORMAT_ERROR | Parameter error |
| 0x000C | ERR_NO_RECORD | No records (no data reported by the Device was found) |
| 0x0102 | ERR_NOT_FOUND_DEVICE | Device not found |