查询设备协议中被定义为用于报表显示的字段

例, 请求:

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

参数 描述 是否必选
action queryDeviceChartField
devcode 设备编码
lang 国际化支持
  • e0: 字段名.
  • e1: 字段的国际化描述.
  • e2: 字段位置.
  • e3: 字段单位.

响应:

{
    "err":0,
    "desc":"ERR_NONE",
    "dat":[
        {
            "e0":"active_energy",
            "e1":"有功电量",
            "e2":"mixed,0,9",
            "e3":"kWh"
        },
        {
            "e0":"apparent_power",
            "e1":"视在功率",
            "e2":"mixed,0,13",
            "e3":"kVA"
        },
        {
            "e0":"reactive_power",
            "e1":"无功功率",
            "e2":"mixed,0,12",
            "e3":"kVar"
        },
        {
            "e0":"active_power",
            "e1":"有功功率",
            "e2":"mixed,0,11",
            "e3":"kW"
        },
        {
            "e0":"reactive_energy",
            "e1":"无功电量",
            "e2":"mixed,0,10",
            "e3":"kVarh"
        }
    ]
}

可能出现的错误:

返回错误码 描述 详细描述
0x0006 ERR_FORMAT_ERROR 国际化语言输入错误
0x000C ERR_NO_RECORD 无记录(该类型的设备没有用于显示报表的字段)
0x0182 ERR_NOT_FOUND_DEVICE_CFG 不支持该类型的协议

results matching ""

    No results matching ""