Skip to content

26.xarm_set_modbus_baud_rate

1. Introduction

Setting the modbus baud rate interface,Set modbus baud rate

2.Request & Response

Message

json
{
    "cmd": "xarm_set_modbus_baud_rate",
    "data": {
        "baudrate": 2000000,
        "host_id": 11
    },
    "id": "1"
}

Request

datatypeRequired filedDescriptionexample value
baudrateIntyesSet baud rate value2000000
host_idIntyesA value of 11 is for the control box and 9 is for the robot arm.11

Response:

code=0->Success;
code!=0->Failed, refer to xarm_api_code;

\