The query device protocol is defined as a field for report display
such as, request:
| 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 |