Query the details of the data of the current day within the specified date of the device (specified field)

such as, request:

http://api.dessmonitor.com/public/?sign=2f72ddefa0aeaf221bd7396dbe45481aaadea666&salt=1467082830619&token=51e457eb74c9e604029509ba285a839c&action=queryDeviceChartFieldDetailData&pn=AS154104311690&devcode=1024&sn=AH9E99240E&field=active_energy&precision=60&sdate=2016-06-28+00%3A00%3A00&edate=2016-06-28+23%3A59%3A59&source=1&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1

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

results matching ""

    No results matching ""