DelegateSerialPort class

A serial port implementation that delegates to package:libserialport

Inheritance

Constructors

DelegateSerialPort(String portName)
Creates a serial port that delegates to the libserialport package.

Properties

bytesAvailable int
How many bytes are available to be read.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isOpen bool
Whether this port is open.
no setteroverride
portName String
The name of the port.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
Closes the connection to the device.
override
init() Future<bool>
Initializes the connection to the device.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDisconnect() Future<void>
A callback to run when the program has disconnected from the Dashboard.
inherited
read(int count) Uint8List
Reads the given number of bytes from the port.
override
toString() String
A string representation of this object.
inherited
write(Uint8List bytes) → void
Writes data to the port.
override

Operators

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

Static Properties

allPorts List<String>
A list of all available ports on the device.
no setter