Set
Function
This API is used to set Access Control > RS-485 parameters.
Request Message
See AccessControl > RS485 > Range > Parameter Description > Table 2 for parameter description.
Sample:
POST /API/AccessControl/RS485/Set HTTP/1.1
{
"version": "1.0",
"data": {"channel_info": {"CH1": {
"enable": true,
"protocol": "Protocol-P",
"baudrate": "9600",
"data_bit": "8",
"stop_bit": "1",
"parity": "None",
"address": "1",
"chn_index": "CH1"
}}}
}
Response Message
None.
Sample:
HTTP/1.1 200 OK
Content-Type: application/json
{
"result": "success",
"data": {}
}
Error Code
See Response Messages Body and Common error_code for more information.