SerialPortBaseDart class
Dart rewrite of SerialPortBase (C#) built on flutter_libserialport.
Constructors
- SerialPortBaseDart(SerialDeviceConfig config)
Properties
- config → SerialDeviceConfig
-
final
- etx ↔ int
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isConnected → bool
-
no setter
-
onData
→ Stream<
DataReceive> -
no setter
-
onPinChanged
→ Stream<
PinSnapshot> -
no setter
- response ↔ String
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusResponse ↔ String
-
getter/setter pair
- stx ↔ int
-
getter/setter pair
Methods
-
close(
) → Future< bool> -
dispose(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
) → Future< bool> - Try opening the port with the configured mode.
-
sendAndRead(
{required List< int> request, Duration timeout = const Duration(seconds: 1), Duration quietWindow = const Duration(milliseconds: 120)}) → Future<Uint8List> -
sendBytes(
List< int> message) → Future<bool> - Equivalent to Send(byte[] message) in C#.
-
sendStrings(
List< String> messages) → Future<bool> - Equivalent to Send(params string[] messages) in C#.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited