帮助中心
帮助中心主页
HTTP API
Modbus API
常见问题
临时修改机器人的参数

请求

  • 功能:临时修改机器人的参数,在机器人重启后,临时修改的参数将恢复未修改前的值
  • 方法:POST
  • 接口说明:/setParams
json
POST "http://host:8088/setParams"
1

请求数据

NameTypeDescriptionRequired
vehiclestring机器人名
bodyobject需要修改的参数内容,详情见临时修改机器人参数

请求示例

json
{
    "vehicle": "hu-test-3",
    "body": {
        "NetProtocol": {                // 插件名
            "RobotName": "hu-test-3"    // 参数内容
        }
    }
}
1
2
3
4
5
6
7
8

响应

响应数据

NameTypeDescription
codeintAPI 错误码,详情见 API 错误码
msgstringAPI 错误码信息
create_onstringAPI 上传时间戳

响应数据示例

Responses Code 200

成功响应
json
{
    "code": 0,
    "create_on": "2022-02-10T18:21:25.073Z",
    "msg": "ok"
}
1
2
3
4
5

Responses Code 400

vehicle 不为 string
json
{
    "code": 50001,
    "create_on": "2022-05-24T18:28:04.097Z",
    "msg": "don't have vehicle or vehicle is not a string"
}
1
2
3
4
5

body 不为 object
json
{
    "code": 50001,
    "create_on": "2022-05-24T18:29:03.412Z",
    "msg": "don't have body or body is not an object"
}
1
2
3
4
5

请求 body 不为 json
json
{
    "code": 50000,
    "create_on": "2022-02-10T18:21:25.073Z",
    "msg": "parse json error"
}
1
2
3
4
5

Responses Code 406

RDSCore 没有 XXX 机器人的控制权
json
{
    "code": 50003,
    "create_on": "2022-05-24T18:30:06.623Z",
    "msg": "XXX not locked"
}
1
2
3
4
5
最近更新 2022/11/28
文章内容

请求

请求数据

请求示例

响应

响应数据

响应数据示例

Responses Code 200

Responses Code 400

Responses Code 406