clear_buffer
Clear buffered unread data on a serial port to prevent processing stale messages, while keeping line history for tail.
Instructions
Discard all buffered unread data on a port (line history for tail is kept).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | Port device from list_ports (e.g. /dev/cu.usbserial-0001, /dev/ttyUSB0, COM3), or a pyserial URL such as socket://host:port, rfc2217://host:port or loop://. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |