## General - Switch
### Function Introduction
- Switches are divided into on-off switches and App-side switches. There are two switch effects: gradient and no gradient, which can be configured on the Mini Program Developer Platform

### DP protocol

| DP code | DP meaning | DP type | Remarks |
| -------- | ------- |------- |------- |
| switch_led | switch | Boolean (bool) | |

### How to develop
- Monitor, report and send DP according to UI interaction
  - [Specific monitoring and sending examples](/en/miniapp/solution-panel/ability#device-function-point-management)

### Notes
- None

### Related materials
- [Function page]: 
  - None
- [Component]: 
  - None
- [Tutorial]: 
  - None
- [API]: 
  - None