tail
Check recent serial output without clearing the buffer. View the last lines a device printed, ideal for catching messages missed while away.
Instructions
Peek at the last lines received on a port WITHOUT consuming the read buffer. Good for checking what a device has been printing while you were doing other things.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | Port device from list_ports (e.g. /dev/cu.usbserial-0001, /dev/ttyUSB0, COM3), or a pyserial URL such as socket://host:port, rfc2217://host:port or loop://. | |
| lines | No | Number of most recent complete lines. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | ||
| partial | Yes | Bytes received after the last newline (an unfinished line). |