UsbSerialPort class

serial port client implementation

Constructors

UsbSerialPort(String name, SerialBaudRate baudRate, SerialDataBits dataBits, SerialStopBits stopBits, SerialParity parity, SerialFlowControl flowControl)

Properties

baudRate SerialBaudRate
final
dataBits SerialDataBits
final
flowControl SerialFlowControl
final
hashCode int
The hash code for this object.
no setterinherited
isOpen bool
True if the serial port connection is open
no setter
name String
The serial port name
final
parity SerialParity
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stopBits SerialStopBits
final

Methods

close() Future<void>
Closes the serial port.
flush() Future<void>
Flushes serial port buffers.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() Future<bool>
Opens the serial port for reading and writing.
read(int bytes, {Duration? timeout}) Future<Uint8List>
Read data from the serial port.
toString() String
A string representation of this object.
inherited
write(Uint8List bytes, {Duration? timeout}) Future<int>
Write data to the serial port.

Operators

operator ==(Object other) bool
The equality operator.
inherited