LibserialportSerialTransport class
Methods
-
close()
→ Future<void>
-
Close the port.
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
open(String portName, SerialConfig config)
→ Future<void>
-
Opens the underlying port using
config. Idempotent.
override
-
readModemStatus()
→ Future<ModemStatus>
-
Read the current state of the four DCE→DTE modem-status lines.
Production transports query the underlying driver
(
sp_get_signals for libserialport, GetCommModemStatus for
Windows). The default throws so existing custom transports
keep compiling; override to expose this capability.
override
-
sendBreak({Duration duration = const Duration(milliseconds: 250)})
→ Future<void>
-
Send a BREAK condition for
duration.
override
-
setDtr(bool active)
→ Future<void>
-
Drive the DTR (Data Terminal Ready) modem control line.
Default implementation throws — production transports override.
override
-
setRts(bool active)
→ Future<void>
-
Drive the RTS (Request To Send) modem control line.
override
-
toString()
→ String
-
A string representation of this object.
inherited
-
write(List<int> bytes)
→ Future<void>
-
Transmit a raw byte sequence.
override