Skip to content

Interface: DiscoveredPrinter ​

A printer that was discovered on one of the supported transports.

Returned by PrinterDiscovery.listPrinters(). Pass the matching fields (vid, pid, serialNumber, or host/port) into openPrinter() to open a specific device.

Properties ​

PropertyTypeDescription
connectionIdstringTransport-specific connection identifier. Opaque to consumers — a USB device path, a TCP host:port, or a BLE address, depending on transport. Never parse it; for network printers use host / port instead.
deviceDeviceEntryRegistry entry for the detected model.
host?stringNetwork address the printer was discovered at. Set for network-discovered printers (transport: 'tcp') so callers can re-open with openPrinter({ host, port, deviceKey: device.key }) without a second identification round trip.
port?numberTCP port that goes with host; the registry entry's transports.tcp.port.
serialNumber?stringSerial number, if the transport exposes it (USB descriptor, mDNS TXT, etc.).
transportTransportTypeWhich transport this printer was discovered on.