1.0.0 • Published 4 years ago

zebex-z3100 v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

zebex-z3100

Description

This package aims to make it simple to connect to the zebex z3100 ccd scanner. This package uses serialport package to communicate between the node process and the ccd scanner.

Usage

const Zebex = require("zebex-z3100");

;(async () => {
    const scanner = new Zebex();

    await scanner.connect();

    scanner.on("data", barcodeBuffer => {
        console.log(barcodeBuffer.toString())

        scanner.disconnect();
    })
})()

Options

The Zebex class can take a single parameter as an object with the follwing properties.

  • baudRate: number - If you can configured your scanner to use a different baudrate you can set it there.
  • parser: stream.Transform - A parser to modify the incoming buffer. Please refer to the serialport documentation

Supported environments

It has been tested on windows 10 and linux, i do not have access to any other OS at the moment.

Resources