pio_monitor_start
Start a background serial monitor session for an embedded device and get a session ID to read buffered output.
Instructions
Open a background serial monitor session and return a session_id. Port and baud default from platformio.ini (monitor_port/monitor_speed) when project_dir is given, else the single detected dev board and 115200. Output is buffered (ring buffer, max_lines); read it with pio_monitor_read. The session holds the port, so stop it before pio_upload.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| baud | No | ||
| port | No | ||
| max_lines | No | ||
| project_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||