RS-232 / virtual COM port connection (System.IO.Ports). Opens the port per call.
Constructors
| Signature | Description |
# SerialPrinterConnection(string portName, int baudRate = 9600, Parity parity = Parity.None, int dataBits = 8, StopBits stopBits = StopBits.One, Handshake handshake = Handshake.XOnXOff) | |
Properties
Methods
| Method Signature | Returns | Description |
# DisposeAsync() | ValueTask | |
# QueryAsync(string command, TimeSpan timeout, CancellationToken ct = default) | Task<string> | |
# SendAsync(byte[] data, CancellationToken ct = default) | Task | |