Query the details of the data of the current day within the specified date of the device (specified field)
such as, request:
| parameter | description | Required or not |
|---|---|---|
| action | queryDeviceChartFieldDetailData | true |
| pn | The product number of the collector attached to the device | true |
| devcode | Device encoding | true |
| sn | Device table serial number | true |
| devaddr | Device address | true |
| field | Field name | true |
| id | The number of the substrate, micro-inverse must pass this parameter | false |
| precision | Granularity (minutes) | true |
| sdate | start time at yyyy-MM-dd HH:mm:ss | true |
| edate | Deadline (the start date should be the same as the deadline) | true |
response:
{
"err":0,
"desc":"ERR_NONE",
"dat":[
{
"key":"2016-06-28 00:00:00",
"val":"0"
},
{
"key":"2016-06-28 01:00:00",
"val":"0"
},
{
"key":"2016-06-28 02:00:00",
"val":"0"
},
{
"key":"2016-06-28 03:00:00",
"val":"0"
},
{
"key":"2016-06-28 04:00:00",
"val":"0"
},
{
"key":"2016-06-28 05:00:00",
"val":"0"
},
{
"key":"2016-06-28 06:00:00",
"val":"0"
},
{
"key":"2016-06-28 07:00:00",
"val":"0"
},
{
"key":"2016-06-28 08:00:00",
"val":"0"
},
{
"key":"2016-06-28 09:00:00",
"val":"0"
},
{
"key":"2016-06-28 10:59:14",
"val":"205.6000"
},
{
"key":"2016-06-28 11:00:14",
"val":"205.6000"
},
{
"key":"2016-06-28 12:00:00",
"val":"0"
},
{
"key":"2016-06-28 13:00:00",
"val":"0"
},
{
"key":"2016-06-28 14:00:00",
"val":"0"
},
{
"key":"2016-06-28 15:00:00",
"val":"0"
},
{
"key":"2016-06-28 16:00:00",
"val":"0"
},
{
"key":"2016-06-28 17:00:00",
"val":"0"
},
{
"key":"2016-06-28 18:00:00",
"val":"0"
},
{
"key":"2016-06-28 19:00:00",
"val":"0"
},
{
"key":"2016-06-28 20:00:00",
"val":"0"
},
{
"key":"2016-06-28 21:00:00",
"val":"0"
},
{
"key":"2016-06-28 22:00:00",
"val":"0"
},
{
"key":"2016-06-28 23:00:00",
"val":"0"
}
]
}
possible error:
| Returns an error code | description | detailed description |
|---|---|---|
| 0x0006 | ERR_FORMAT_ERROR | parameter format error |
| 0x000C | ERR_NO_RECORD | no record |