The query device protocol is defined as a field for report display

such as, request:

http://api.dessmonitor.com/public/?sign=7f348888c12574af195bbb7b1d6c1c3340d261cc&salt=1453080193869&token=231910bf1c872a4904932a477bbe1be2&action=queryDeviceChartField&devcode=544&lang=zh_CN&source=1&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1

parameter description Required or not
action queryDeviceChartField true
devcode Device encoding true
lang Internationalization support true
  • e0: Field name.
  • e1: The internationalized description of the field.
  • e2: Field location.
  • e3: Field units.

response:

{
    "err":0,
    "desc":"ERR_NONE",
    "dat":[
        {
            "e0":"active_energy",
            "e1":"Active power",
            "e2":"mixed,0,9",
            "e3":"kWh"
        },
        {
            "e0":"apparent_power",
            "e1":"Apparent power",
            "e2":"mixed,0,13",
            "e3":"kVA"
        },
        {
            "e0":"reactive_power",
            "e1":"Reactive power",
            "e2":"mixed,0,12",
            "e3":"kVar"
        },
        {
            "e0":"active_power",
            "e1":"Active power",
            "e2":"mixed,0,11",
            "e3":"kW"
        },
        {
            "e0":"reactive_energy",
            "e1":"Reactive power",
            "e2":"mixed,0,10",
            "e3":"kVarh"
        }
    ]
}

possible error:

Returns an error code description detailed description
0x0006 ERR_FORMAT_ERROR Internationalized language input error
0x000C ERR_NO_RECORD No record (this type of device does not have a field to display the report)
0x0182 ERR_NOT_FOUND_DEVICE_CFG This type of protocol is not supported

results matching ""

    No results matching ""