Constructors
Methods
getHardwareVersion
- getHardwareVersion(): Promise<string>
Returns Promise<string>
getPacketTimeout
- getPacketTimeout(): number
Returns number
getPrinterBluetoothMacAddress
- getPrinterBluetoothMacAddress(): Promise<string>
Returns Promise<string>
getPrinterModel
- getPrinterModel(): Promise<number>
Returns Promise<number>
getPrinterSerialNumber
- getPrinterSerialNumber(): Promise<string>
Returns Promise<string>
getSoftwareVersion
- getSoftwareVersion(): Promise<string>
Returns Promise<string>
isSoundEnabled
- isSoundEnabled(soundType): Promise<boolean>
Returns Promise<boolean>
labelPositioningCalibration
- labelPositioningCalibration(value): Promise<boolean>
Returns Promise<boolean>
newPrintTask
- newPrintTask(name, options?): AbstractPrintTask
Parameters
- name:
| "B1"
| "D110"
| "D11_V1"
| "B21_V1"
| "V5" Optional
options: Partial<PrintOptions>
printEnd
- printEnd(): Promise<boolean>
Returns Promise<boolean>
printerReset
- printerReset(): Promise<void>
Returns Promise<void>
sendAll
- sendAll(packets, forceTimeout?): Promise<void>
Returns Promise<void>
setAutoShutDownTime
- setAutoShutDownTime(time): Promise<void>
Returns Promise<void>
setDefaultPacketTimeout
- setDefaultPacketTimeout(): void
Returns void
setPacketTimeout
- setPacketTimeout(value): void
Returns void
setSoundEnabled
- setSoundEnabled(soundType, value): Promise<void>
Returns Promise<void>
waitUntilPrintFinishedByPageIndex
- waitUntilPrintFinishedByPageIndex(pagesToPrint, timeoutMs?): Promise<void>
Parameters
- pagesToPrint: number
- timeoutMs: number = 5_000
Returns Promise<void>
waitUntilPrintFinishedByPrintEndPoll
- waitUntilPrintFinishedByPrintEndPoll(pagesToPrint, pollIntervalMs?): Promise<void>
Parameters
- pagesToPrint: number
- pollIntervalMs: number = 500
Returns Promise<void>
waitUntilPrintFinishedByStatusPoll
- waitUntilPrintFinishedByStatusPoll(pagesToPrint, pollIntervalMs?): Promise<void>
Parameters
- pagesToPrint: number
- pollIntervalMs: number = 300
Returns Promise<void>
Packet sender and parser.