Class NiimbotBluetoothClient

Hierarchy (view full)

Constructors

Properties

abstraction: Abstraction
debug: boolean = false
info: PrinterInfo = {}
mutex: Mutex = ...
packetIntervalMs: number = 10
prefixed: string | boolean

Methods

  • Determine print task version if any.

    Returns
        | undefined
        | "B1"
        | "D110"
        | "D11_V1"
        | "B21_V1"
        | "V5"

  • Remove all listeners, or those of the specified event.

    Parameters

    • Optionalevent: keyof ClientEventMap

    Returns this

  • Send raw bytes to the printer port.

    Parameters

    • data: Uint8Array

      Bytes to send.

    • Optionalforce: boolean

      Ignore mutex lock. It used internally and you should avoid using it.

    Returns Promise<void>