serial_read
Read data from the serial port buffer to capture async output like boot messages or periodic prints within a specified timeout.
Instructions
Read data from the serial port buffer.
Reads whatever data is available or arrives within the timeout period. Useful for catching async output like boot messages or periodic prints. Uses polling loop (50ms inter-byte, 200ms silence break).
Args: connection_id: Connection ID from serial_connect. timeout: Max seconds to wait for data (default 2.0). max_bytes: Max bytes to read (default 4096).
Returns: Received data as text, or "(no data received)".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| max_bytes | No | ||
| connection_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |