NiimBlueLib Docs
    Preparing search index...

    Class NiimbotCapacitorBleClient

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

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

    Methods

    • Convert raw bytes to packet objects and fire events. Defragmentation included.

      Parameters

      • data: DataView<ArrayBufferLike> | Uint8Array<ArrayBufferLike>

        Bytes to process.

      Returns void

    • 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>