Query the working status of Dataloggers and Devices in the Plant
Parameter | Description | Required |
---|---|---|
action | queryPlantDeviceStatus | True |
plantid | Plant id | True |
response:
Parameter | Description | Required |
---|---|---|
status | Plant status | True |
collector[x].pn | Datalogger unmber | True |
collector[x].alias | Datalogger alias | True |
collector[x].status | Datalogger status, refer to Device status | True |
collector[x].device[y].devcode | Device protocol encoding | True |
collector[x].device[y].devaddr | Device address (485 bus) | True |
collector[x].device[y].sn | Device serial number | True |
collector[x].device[y].alias | Device alias | False |
collector[x].device[y].status | Device status | True |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"status":0,
"collector":[
{
"pn":"COLLECTOR0000",
"status":0,
"device":[
{
"devcode":512,
"devaddr":1,
"sn":"0123456789",
"status":0
}
]
}
]
}
}
Possible errors:
Response error code | Description | Details |
---|---|---|
0x0006 | ERR_FORMAT_ERROR | Parameter error |
0x000B | ERR_NO_PERMISSION | No permission (the user does not have permission to operate the Plants) |
0x0101 | ERR_NOT_FOUND_COLLECTOR | Unable to find the Datalogger |
0x0101 | ERR_NOT_FOUND_DEVICE | Unable to find the Device |
0x0104 | ERR_NOT_FOUND_PLANT | Unable to find the Plant |