Open maroodb opened 4 years ago
I think, this condition is no more applicable: the end of stream is not a '40'
if (chunk[2] !== 40) {
bcodeBuffer.push(this.hidMap[chunk[2]]);
} else {
barcode = bcodeBuffer.join("");
bcodeBuffer = [];
this.emitDataScanned(barcode);
}
UPDATE : I added an "ENTER" suffix to the barecode scanner, but some characters are not supported by the library, I thinks hideMap doesn't cover all character
the devise works fine, but the example don't work,
I copied the same code and I changed productId and vendor.