ModbusSerialPort class abstract

Abstract serial port client

Constructors

ModbusSerialPort()

Properties

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
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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