pylabrobot.generic.SerialBarcodeScanner.read_line#

async SerialBarcodeScanner.read_line(timeout: float | None = None) str#

Read one barcode line from the serial stream.

Parameters:

timeout (float | None) – Optional total read timeout in seconds. If omitted, the underlying pylabrobot.io.Serial timeout is used.

Returns:

The decoded line without the trailing line terminator. Returns an empty string if the timeout elapses before any byte is read.

Return type:

str