Packet sender and parser.

Constructors

Methods

  • May be wrong, version format varies between models

    Returns Promise<string>

  • May be wrong, version format varies between models

    Returns Promise<string>

  • When 1 or 2 sent to B1, it starts to throw out some, paper (~15cm)

    Parameters

    • value: number

      success

    Returns Promise<boolean>

  • Parameters

    • pagesToPrint: number
    • timeoutMs: number = 5_000

    Returns Promise<void>

  • Poll printer every pollIntervalMs and resolve when printer pages equals pagesToPrint.

    printprogress event is firing during this process.

    PrintEnd call is not needed after this functions is done running.

    Parameters

    • pagesToPrint: number

      Total pages to print.

    • pollIntervalMs: number = 500

      Poll interval in milliseconds.

    Returns Promise<void>

  • Poll printer every pollIntervalMs and resolve when printer pages equals pagesToPrint, pagePrintProgress=100, pageFeedProgress=100.

    printprogress event is firing during this process.

    Parameters

    • pagesToPrint: number

      Total pages to print.

    • pollIntervalMs: number = 300

      Poll interval in milliseconds.

    Returns Promise<void>