1.0.0 • Published 6 years ago
handled-rfid-reader-decoder v1.0.0
JS Handled RFID Reader Decoder
JS module which handles and decodes input keyboard event from an Handled RFID reader
It actually decodes :
Vanch VD-67E with Hexadecimal EPC configuration
Installation
npm i handled-rfid-reader-decoderor
yarn add handled-rfid-reader-decoderor download source directly from github
Usage
Import package
First import the package
const HandledRFIDReaderDecoder = require('handled-rfid-reader-decoder')Bind keyboard input
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
Clear current tag value
The tag value is not clear automatically when the reader sends an enter key input. But you can clear it manually with :
HandledRFIDReaderDecoder.clear();Requests
Feel free to ask for request or to do pull request if you think you've improved the plugin
License
This piece of software is issued under the GNU GENERAL PUBLIC LICENSE. You can view the license here