adapnex::core::SerialPort::Read

Read from the serial port.

Synopsis

Declared in <adapnex/core/serial.h>

virtual
ssize_t
Read(
    std::span<uint8_t> data,
    Duration byte_timeout) = 0;

Return Value

Returns the number of bytes read, or ‐1 on error.

Parameters

Name Description

data

The buffer to read data into.

byte_timeout

The maximum duration to wait between bytes.

Created with MrDocs