Query device control items

such as, request: http://api.dessmonitor.com/public/?sign=7f220b6f21d0b52d0452d9c66ffe1f4f84635b81&salt=2337424845041575962&token=91a6c87e89acbfb2fa482f3b02ee071ee58ea0293dd92f243a88ee51415f497f&action=queryDeviceCtrlField&pn=J1817101731142&devcode=752&devaddr=1&sn=687484400018&i18n=zh_CN&source=1&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1

parameter description required
action queryDeviceCtrlField true
pn Digital collector number true
devcode Device protocol encoding true
devaddr Device Address (485 bus) true
sn Device serial number true
i18n International language, seeSupport for multiple languages true

response:

parameter description required
field[x].id The control item is uniquely identified true
field[x].name Internationalization description true
field[x].unit Some of the fields to be set have units, while others do not, For example, the power factor of the inverter is in '%' false
field[x].hint Enter the prompt false
field[x].item[y].key Valid only if the field is an enumeration type, representing the value of the enumerated field false
field[x].item[y].val Valid only if the field is an enumeration type, representing the internationalized description of the enumerated field false
{
    "err":0,
    "desc":"ERR_NONE",
    "dat":{
        "field":[
            {
                "id":"charger_from_grid_start_time",
                "name":"Charging start time (hours:minutes)",
                "unit":"Hour:Minute",
                "hint":"23:59"
            },
            {
                "id":"charger_from_grid_end_time",
                "name":"End of charge time (hours:minutes)",
                "unit":"Hour:Minute",
                "hint":"23:59"
            },
            {
                "id":"inverter_charger_from_grid_enable",
                "name":"Inverter grid charging enable",
                "item":[
                    {
                        "key":"0",
                        "val":"Incapacitation"
                    },
                    {
                        "key":"1",
                        "val":"Enable"
                    }
                ]
            }
        ]
    }
}

possible error:

Returns an error code description detailed description
0x0001 ERR_FAIL Failed (no device protocol)
0x0006 ERR_FORMAT_ERROR parameter error
0x000C ERR_NO_RECORD No record (there may be no visible control fields or no templates in the agreement)
0x0102 ERR_NOT_FOUND_DEVICE device not found

results matching ""

    No results matching ""