serial.readline
Read a line of data from a serial connection until a newline character or maximum bytes limit is reached, with configurable timeout, output format, and line terminator.
Instructions
Read a line from the serial port (reads until the newline character is received or max_bytes is reached). Uses the connection's newline setting by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_id | Yes | ||
| timeout_ms | No | Override read timeout (milliseconds). | |
| max_bytes | No | Maximum bytes to read (default 4096). | |
| newline | No | Override line terminator (defaults to connection newline). | |
| as | No | Output format (default text). | text |