Device control
| parameter | description | required |
|---|---|---|
| action | ctrlDevice | true |
| pn | Digital collector number | true |
| devcode | Device protocol encoding | true |
| devaddr | Device Address (485 bus) | true |
| sn | Device serial number | true |
| id | The field ID to set | true |
| val | The value of the field ID to set | true |
response:
| parameter | description | required |
|---|---|---|
| dat | Response after the command is issued, The format is a hexadecimal string capital, such as: "AA BB CC DD EE FF". The system does not parse or modify this response, back to the invoker directly. besides, Some instructions do not bring a response, in which case "null" is returned |
true |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"dat":"00 01 02"
}
}