zebex-z3100
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i zebex-z3100

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

5.89 kB

Total Files

5

Last publish

Collaborators

  • granhof