Query the data of important parameters of the device for a certain day
| parameter | description | required |
|---|---|---|
| action | queryDeviceKeyParameterDay | true |
| pn | Digital collector number | true |
| devcode | Device protocol encoding | true |
| devaddr | Device Address (485 bus) | true |
| sn | Device serial number | true |
| parameter | The parameter to query, seeImportant parameters of the device | true |
| date | The date to query, format: yyyy-mm-dd, The date is considered the time zone of the device, If you do not pass this parameter, it defaults to today | true |
response:
| parameter | description | required |
|---|---|---|
| info | Data of important equipment parameters for a certain day | true |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"info":[{
"par":"apparent_power",
"val":"12.0000"
}
]
}
}
possible error:
| Returns an error code | description | detailed description |
|---|---|---|
| 0x0006 | ERR_FORMAT_ERROR | parameter error |
| 0x0007 | ERR_MISSING_PARAMETER | The necessary parameters are missing |
| 0x000C | ERR_NO_RECORD | No record (no data for the device) |
| 0x0102 | ERR_NOT_FOUND_DEVICE | Device not found |