serial.flush
Discard pending data in serial port buffers to clear input, output, or both queues for a fresh communication state.
Instructions
Flush serial port buffers (discard pending input/output data).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_id | Yes | ||
| what | No | Which buffer to flush: input, output, or both (default both). | both |