serial_expect
Automate serial communication by waiting for specific patterns and sending responses, handling login prompts and AT command flows through sequential steps.
Instructions
Wait for patterns and optionally send responses. Useful for login prompts and AT flows.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_id | Yes | Connection ID from serial_connect | |
| steps | Yes | Sequence of steps (each with wait_for and/or send) | |
| flush_input | No | Flush input buffer before starting (default: false) | |
| default_timeout | No | Default timeout for steps without timeout (default: 30) | |
| default_line_ending | No | Default line ending for sends when raw=false (default: 'lf') | lf |