Skip to content

Wiegand Interface via GPIO in Node.js

License

Notifications You must be signed in to change notification settings

bestpika/node-wiegand

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-wiegand

Decoder for wiegand readers on GPIO. Currently works on linux only, but can be tested on other platforms.

requirements

  • Linux with GPIO
  • node-gyp

usage

const Wiegand = require('wiegand');
const w = new Wiegand();
w.begin({ d0: 17, d1: 18 });
w.on('data', (data) => {
  console.log('Got', data.length, 'bits from wiegand with data:', data);
});
w.on('keypad', (num) => {
  console.log('Got', num, 'from the reader\'s keypad');
});
w.on('reader', (id) => {
  console.log('Got', id, 'from RFID reader');
});

license

MIT

About

Wiegand Interface via GPIO in Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%