Bar-code Scanner

Does any one know is it possible for a bar-code scanner to be programmed into node red.

Most barcode scanners appear as serial devices so can be accessed using a Serial node - but the specific details will depend on the device you want to use.

If you search the forum here you'll find previous conversations about it.

Perfect
Thanks Nick

Or some just appear as usb-hid (keyboard) devices.

Thanks for you help

Yes you can, I have a USB one which I can use to check the price of items in Tesco. It's a bit flakey from a coding point of view but it works.

I have a program written now that seems to be OK no faults but im getting an error when deploy from my scanner node "TypeError: Cannot read property 'on' of undefined".
i have obtained the VID and PID numbers for the scanner. I obtained that by using the 'getHIDdevices' node. Its giving me a couple different readings for both PID and VID but iv tried them all but still no joy.