Modify the device information
| parameter | description | required |
|---|---|---|
| action | editDeviceInfo | true |
| pn | Digital collector number | true |
| devcode | Device protocol encoding | true |
| devaddr | Device Address (485 bus) | true |
| sn | Device serial number | true |
| alias | when Device alias not passed, indicates that it does not have to be modified | false |
response: no text
{
"err":0,
"desc":"ERR_NONE"
}
possible error:
| Returns an error code | description | detailed description |
|---|---|---|
| 0x0001 | ERR_FAIL | Failed (modification failed) |
| 0x0006 | ERR_FORMAT_ERROR | parameter error |
| 0x000B | ERR_NO_PERMISSION | No permission (the current data collector is not the user) |
| 0x0102 | ERR_NOT_FOUND_DEVICE | device not found |
| 0x010F | ERR_NONE_OPERATION | There are no modifications |