node-rdm6300
v1.0.2
Published
nodejs RDM6300 125khz RFID lib
Downloads
5
Readme
node-rdm6300
nodejs RDM6300 125khz RFID lib
Prerequisites
- A 125KHz RFID RDM6300 module
- An USB TTL adapter
Installation
install this package from npm
npm install node-rdm6300
Usage
// use import
// import Rdm6300 from 'node-rdm6300';
// use require
const Rdm6300 = require('node-rdm6300').default;
const rdm = new Rdm6300({ path: '/dev/tty.usbserial-0001' });
rdm.on('cardIn', (cardId) => {console.log('card in', cardId);});
rdm.on('cardOut', () => {console.log('card out');});
rdm.on('open', () => {console.log('serialport open');});
rdm.on('error', (e) => {console.log('serialport error', e);});
Document
https://chnbohwr.github.io/node-rdm6300/classes/Rdm6300.html
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.