query_text
Send an ASCII command to a serial device and capture the reply, waiting for a specified prompt or until output goes idle.
Instructions
Convenience: clear the buffer, send an ASCII command, and read the reply.
For the common "ask the device something and read its answer" case. If prompt
is given, reads until that prompt appears (best for interactive CLIs). If
prompt is empty, reads until the device goes idle for a short beat (best for
line-based rigs/CAT that reply with a terminated string and no shell prompt).
Args: data: Command text, e.g. "show version" or "ID". line_ending: "CR", "CRLF", "LF", or "NONE" (see send_text). prompt: Optional literal prompt to read until, e.g. "# ". Empty = read until idle. read_timeout: How long to wait overall, in seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| prompt | No | ||
| line_ending | No | CR | |
| read_timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |