Energy storage queries all device views under the specified protocol
| parameter | description | required |
|---|---|---|
| action | webQueryDevcodeViewEs | true |
| devcode | Device encoding | true |
response:
| parameter | description | required |
|---|---|---|
| total | Total number of all devices | true |
| warningCount | Number of all device warnings | true |
| faultCount | Number of all device failures | true |
| attention | All device alerts | true |
| offCount | Number of offline devices across all devices | true |
| normalCount | All devices are normal | true |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"total":3,
"warningCount":0,
"faultCount":0,
"attention":0,
"offCount":2,
"normalCount":1
}
}
possible errror:
| Returns an error code | description | detailed description |
|---|---|---|
| 0x0008 | ERR_FORBIDDEN | rejection |
| 0x0102 | ERR_NOT_FOUND_DEVICE | device not found |
| 0x0007 | ERR_MISSING_PARAMETER | The necessary parameters are missing |