query_text
Send an ASCII command to a serial device and capture the response until a prompt or idle, combining clear, send, and read into one step.
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. Reads
until prompt (or the connection's prompt) appears; with no prompt anywhere,
or prompt="", 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). Default: the connection's line ending. prompt: Literal prompt to read until, e.g. "# " or ";". "" forces an idle-terminated read even if the connection has a prompt. read_timeout: How long to wait overall, in seconds. connection: Which open connection (name). Default: the current one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| prompt | No | ||
| connection | No | ||
| line_ending | No | ||
| read_timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |