The store queries the value or sum of multiple devices or a single device based on the protocol
such as, request: http://api.dessmonitor.com/public/?sign=ff8de6e39b656a4ee8ed3494f0ca1bf55bd1a0c5&salt=1540464842303&token=587ca86cbdcb4676a1164e6db62cf1f94468b5c10c413efe341a98369bb41a85&action=queryDeviceParsEs&pn=X2118122507142&devcode=2343&devaddr=1&sn=1601012001&source=1&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1
| parameter |
description |
required |
| action |
queryDeviceParsEs |
true |
| devcode |
Energy storage protocol code, mandatory parameters |
true |
| pn |
Energy storage equipment PN, a single device must be transmitted |
false |
| devaddr |
Energy storage equipment PN address, a single device must be transmitted |
false |
| sn |
Energy storage device SN, a single device must be transmitted |
false |
| l18n |
International language,the default is English |
false |
response:
| parameter |
description |
required |
| parameter[x].par |
The data is in the optional parameter in XML |
true |
| parameter[x].name |
The name of the data displayed on the web page, which supports international languages |
true |
| parameter[x].val |
Data value |
true |
| parameter[x].unit |
Date unit |
true |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"parameter":[
{
"par":"energy_total",
"name":"Total Active Power Generation",
"val":"135.3000",
"unit":"kWh"
},
{
"par":"gd_grid_current_es",
"name":"Grid Side Current L1",
"val":"18.6200",
"unit":"A"
},
{
"par":"gd_grid_external_limter_current_l1",
"name":"Grid External Limter Current L1",
"val":"1.7800",
"unit":"A"
},
{
"par":"gd_grid_external_limter_power_l1",
"name":"Grid External Limter1 Power",
"val":"0.0000",
"unit":"kW"
}
]
}
}
possible error:
| Returns an error code |
description |
detailed description |
| 0x0007 |
ERR_MISSING_PARAMETER |
The necessary parameters are missing |
| 0x0008 |
ERR_FORBIDDEN |
reject |
| 0x0102 |
ERR_NOT_FOUND_DEVICE |
device not found |