DVSerialConnection class

An open serial port.

Constructors

DVSerialConnection(int handle, String path)
const

Properties

handle → int
The binding's handle for this port.
final
hashCode → int
The hash code for this object.
no setterinherited
path → String
The device this port was opened on.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read({int max = 4096, Duration timeout = const Duration(seconds: 1)}) → Future<Uint8List>
Waits up to timeout for bytes and returns what arrived.
toString() → String
A string representation of this object.
inherited
write(Uint8List bytes) → Future<int>
Writes bytes and returns how many the device took.

Operators

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