Skip to content

brother-ql


brother-ql / node/src / BrotherQLDiscovery

Class: BrotherQLDiscovery

PrinterDiscovery implementation for Brother QL printers.

listPrinters() enumerates USB and skips printers in Editor Lite mass-storage mode (a warning is logged — the user has to switch them out of Editor Lite manually). Network printers open via openPrinter({ host, port }); there is no mDNS implementation so listPrinters() never surfaces them.

Implements

Constructors

Constructor

new BrotherQLDiscovery(): BrotherQLDiscovery

Returns

BrotherQLDiscovery

Properties

family

readonly family: "brother-ql" = 'brother-ql'

Driver family identifier — matches DeviceEntry.family.

Implementation of

PrinterDiscovery.family

Methods

listPrinters()

listPrinters(): Promise<DiscoveredPrinter[]>

List connected printers on this driver's supported transports.

Returns

Promise<DiscoveredPrinter[]>

Implementation of

PrinterDiscovery.listPrinters


openPrinter()

openPrinter(options?): Promise<BrotherQLPrinter>

Open a printer matching the given options.

If no options are provided, opens the first available printer.

Parameters

options?

BrotherQLOpenOptions = {}

Returns

Promise<BrotherQLPrinter>

Implementation of

PrinterDiscovery.openPrinter