
## General - Charging Switch

### Function Introduction
This DP controls the device to return to the charging dock when it is not on the charging dock.

### DP Protocol
 **DP Code** | **Required** | **Function Point Name** | **Data Type**  | **Data Transmission Type**   | **Remarks**               
-------------|----------|-----------|-----------|--------------|----------------------
 switch_charge  | Required       | Charging Switch     | Boolean (Bool) | Read/Write (rw) | --

### Device Interaction Process
```mermaid
sequenceDiagram
 rect rgb(191, 223, 255)
note right of Panel: Start charging return
    Panel->>Device: Notify device to return to charging/switch_charge: true
    Device-->>Panel: Respond to panel switch_charge DP point update/switch_charge: true
    Device-->>Device: Search for charging dock and return
    Device-->>Panel: Report status DP to update machine status 
end

rect rgb(200, 150, 255)
note right of Panel: Pause charging return
  Panel->>Device: Pause charging return/switch_charge: false
  Device-->>Panel: Respond to panel switch_charge DP point update/switch_charge: false
  Device-->>Device: Stop charging return
end
```

### Notes
--