JS module which handles and decodes input keyboard event from an Handled RFID reader
It actually decodes :
- Vanch VD-67E with Hexadecimal EPC configuration
npm i handled-rfid-reader-decoder
or
yarn add handled-rfid-reader-decoder
or download source directly from github
First import the package
const HandledRFIDReaderDecoder = require('handled-rfid-reader-decoder')
Then use it as an handler of keyboard events, ex :
$("#field").keyDown(event => HandledRFIDReaderDecoder.onInput(event, onValidCallback))
Where:
eventis the javascript event generated by the navigatoronValidCallbackis a callback called only when the reader sends anenterkey input
The tag value is not clear automatically when the reader sends an enter key input. But you can clear it manually with :
HandledRFIDReaderDecoder.clear();
Feel free to ask for request or to do pull request if you think you've improved the plugin
This piece of software is issued under the GNU GENERAL PUBLIC LICENSE. You can view the license here