pio_monitor_capture
Capture serial output after uploading firmware to retrieve boot logs. Opens the port, collects data for a set duration or until a regex matches, then closes and returns the lines.
Instructions
One-shot serial capture with no session to manage: open the port, collect output for up to seconds (or until regex until matches), close the port, and return the lines. Ideal right after pio_upload to grab the boot log.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| baud | No | ||
| port | No | ||
| until | No | ||
| seconds | No | ||
| max_lines | No | ||
| project_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||