Query the device data details of an important parameter on a specific day
| parameter | description | required |
|---|---|---|
| action | queryDeviceKeyParameterOneDay | 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 | true |
response:
| parameter | description | required |
|---|---|---|
| parameter[x].val | The value of the parameter, Standardized units | true |
| parameter[x].ts | When the parameter value was generated (the time zone of the device), format: yyyy-mm-dd hh:mi:ss | true |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"parameter":[
{
"val":"29.0001",
"ts":"2016-12-31 06:10:10"
},
{
"val":"30.0001",
"ts":"2016-12-31 06:15:10"
}
]
}
}
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 |