Control Return-to-Charge
Start or cancel return-to-charge for a specified robot.
Endpoint Information
Section titled “Endpoint Information”- 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.
Request Parameters
Section titled “Request Parameters”| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| dogCode | String | Yes | 001 | Robot code |
| command | String | Yes | 1 | Command: 1 return to charge 2 cancel the return |
Example:
{ "dogCode": "001", "command": "1"}Response
Section titled “Response”| Field | Type | Example | Description |
|---|---|---|---|
| code | Integer | 200 | Status code |
| success | Boolean | true | Whether the request succeeded |
| msg | String | success | Response message |
Example:
{ "success": true, "code": 200, "msg": "success", "data": null}Error Codes
Section titled “Error Codes”| Code | Description |
|---|---|
| 400 | Invalid parameters |
| 401 | Unauthorized |
| 403 | Access denied |
| 404 | Resource not found |
| 500 | Internal server error |