帮助中心
帮助中心主页
HTTP API
Modbus API
常见问题
设置机器人软急停

请求

  • 功能:设置机器人软急停
  • 方法:POST
  • 接口说明:/setSoftIOEMC
json
POST "http://host:8088/setSoftIOEMC"
1

请求数据

NameTypeDescriptionRequired
vehiclestring机器人名
statusbooltrue 为输出急停, false 为不输出急停

请求示例

json
{
    "vehicle": "AMB-01",
    "status": true
}
1
2
3
4

响应

响应数据

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

响应数据示例

Responses Code 200

成功响应
json
{
    "code": 0,
    "create_on": "2022-10-11T11:34:32.368Z",
    "msg": "ok"
}
1
2
3
4
5

Responses Code 400

vehicle 不为 string
json
{
    "code": 50001,
    "create_on": "2022-10-11T11:34:42.324Z",
    "msg": "don't have vehicle or vehicle is not a string"
}
1
2
3
4
5

status 不为 string
json
{
    "code": 50001,
    "create_on": "2022-10-11T11:34:54.306Z",
    "msg": "don't have status or status is not a boolean"
}
1
2
3
4
5

请求数据不为 json
json
{
    "code": 50000,
    "create_on": "2022-10-11T11:35:06.318Z",
    "msg": "parse json error"
}
1
2
3
4
5
最近更新 2023/02/11
文章内容

请求

请求数据

请求示例

响应

响应数据

响应数据示例

Responses Code 200

Responses Code 400