Query the last data of the energy storage device

such as, request: http://api.dessmonitor.com/public/?sign=7f220b6f21d0b52d0452d9c66ffe1f4f84635b81&salt=2337424845041575962&token=91a6c87e89acbfb2fa482f3b02ee071ee58ea0293dd92f243a88ee51415f497f&action=querySPDeviceLastData&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 querySPDeviceLastData 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, seeMulti-language support true

Returns a description of the information value:

parameter description
bt_ Battery information
pv_ PV information
by_ Load information
gd_ Grid information
sy_ System information

response:

parameter description required
gts The time the device last reported data true
gd_[x].id Parameter id true
gd_[x].par Parameter name true
gd_[x].val Parameter value true
gd_[x].unit The unit of the parameter value true
{
    "err":0,
    "desc":"ERR_NONE",
    "dat":{
        "gts":"2018-03-13 17:53:52",        
        "pars":{
            "gd_":[
                {
                    "par":"Grid power_R",
                    "val":"23.1300",
                    "unit":"kW"
                }
            ],
            "pv_":[
                {
                    "par":"PV1 PV voltage",
                    "val":"2313.0000",
                    "unit":"V"
                }
            ],
            "by_":[
                {
                    "par":"BYPASS Load power_S",
                    "val":"23.1300",
                    "unit":"kW"
                }
            ],
            "bt_":[
                {
                    "par":"Battery current",
                    "val":"2313.0000",
                    "unit":"A"
                }
            ]
        }
    }
}

possible error:

Returns an error code description detailed description
0x0006 ERR_FORMAT_ERROR parameter error
0x0007 ERR_MISSING_PARAMETER The necessary parameters are missing
0x000C ERR_NO_RECORD no records(The device does not report data)
0x0102 ERR_NOT_FOUND_DEVICE device not found
0x0300 ERR_PROTOCOL_NOT_OPTION There are no optional fields in the agreement

results matching ""

    No results matching ""