Skip to content

Control Return-to-Charge

Start or cancel return-to-charge for a specified robot.

  • Name: Return-to-charge control
  • Description: Sends a robot back to its charging station or cancels its return.
  • Method: POST
  • Path: remoteApi/chargeCtrl
  • Login required: No
  • Permission required: Yes

Note: The robot must be in task mode.


ParameterTypeRequiredExampleDescription
dogCodeStringYes001Robot code
commandStringYes1Command: 1 return to charge 2 cancel the return

Example:

{
"dogCode": "001",
"command": "1"
}
FieldTypeExampleDescription
codeInteger200Status code
successBooleantrueWhether the request succeeded
msgStringsuccessResponse message

Example:

{
"success": true,
"code": 200,
"msg": "success",
"data": null
}
CodeDescription
400Invalid parameters
401Unauthorized
403Access denied
404Resource not found
500Internal server error