send_text
Send ASCII commands to serial-port devices without reading responses. Optionally clear the input buffer first to discard stale output, then use a read tool to capture the device's reply.
Instructions
Send an ASCII command to the device. Writes to TX only; does NOT read.
On an interactive console the device will ECHO this text back and then print
its output; call read_until_prompt (or read_available) afterward to see it.
Use clear_buffer_first=True to discard any stale/unsolicited output so the
next read starts clean.
Args: data: The command text, e.g. "show version", "FA014250000", or "ID". Non-ASCII characters are sent as "?"; use send_hex for raw bytes. line_ending: What to append — "CR" (\r, most rigs), "CRLF" (\r\n), "LF" (\n, most Unix-style consoles), or "NONE". clear_buffer_first: Discard buffered RX before sending.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| line_ending | No | CR | |
| clear_buffer_first | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |