Query the collection of devices under the data collector
| parameter | description | required |
|---|---|---|
| action | queryCollectorDevices | true |
| pn | Digital collector number | true |
response:
| parameter | description | required |
|---|---|---|
| pn | Digital collector number | true |
| dev | A collection of devices subordinate to the collector | false |
| dev[x].devcode | Device protocol encoding | true |
| dev[x].devaddr | Device Address (485 bus) | true |
| dev[x].sn | Device serial number | true |
| dev[x].alias | Device alias | false |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"pn":"COLLECTOR0001",
"dev":[
{
"devcode":752,
"devaddr":1,
"sn":"687489900018",
"alias":"687489900018"
}
]
}
}
| Returns an error code | description | detailed description |
|---|---|---|
| 0x0006 | ERR_FORMAT_ERROR | parameter error |
| 0x0101 | ERR_NOT_FOUND_COLLECTOR | The data collector could not be found |
| 0x0102 | ERR_NOT_FOUND_DEVICE | Device not found |