Parallel (Centronics/IEEE 1284) port. Writes to the port device: "LPT1".."LPT9" on Windows (or a spooler printer shared on that port), /dev/lp0 / /dev/usb/lp0 on Linux; "LPTn" is mapped to /dev/lp{n-1} on Linux. Write-only.
Constructors
| Signature | Description |
# ParallelPrinterConnection(string port = "LPT1") | |
Properties
| Property | Type | Description |
DevicePath { get; } | string | The device path written to. |
Port { get; } | string | |
Methods
| Method Signature | Returns | Description |
# DisposeAsync() | ValueTask | |
# QueryAsync(string command, TimeSpan timeout, CancellationToken ct = default) | Task<string> | |
static # ResolveDevicePath(string port, bool windows) | string | Maps "LPTn" to the OS device path. |
# SendAsync(byte[] data, CancellationToken ct = default) | Task | |