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.
const Zebex = require("zebex-z3100");
;(async () => {
const scanner = new Zebex();
await scanner.connect();
scanner.on("data", barcodeBuffer => {
console.log(barcodeBuffer.toString())
scanner.disconnect();
})
})()
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
It has been tested on windows 10 and linux, i do not have access to any other OS at the moment.