Skip to content

brother-ql


brother-ql / web/src / fromUSBDevice

Function: fromUSBDevice()

fromUSBDevice(usbDevice): Promise<WebBrotherQLPrinter>

Wrap an already-selected USBDevice.

Parameters

usbDevice

USBDevice

Returns

Promise<WebBrotherQLPrinter>

Throws

when the VID/PID is not in the Brother QL registry.

Deprecated

Use requestPrinters({ transport: 'usb' }) from ./request-printers.ts. Removed once consumers migrate (plan 11).