1.0.1 • Published 6 years ago

rfidread-mfrc522 v1.0.1

Weekly downloads
1
License
GPL-3.0-or-later
Repository
-
Last release
6 years ago

rfidRead-MFRC522

rfidRead-MFRC522 for Node.js

##Changelog

###v1.0.1

 - removed the delay between scanning the same card

Require

SPI-Py

Install

npm install rfidRead-MFRC522

Sample

var mfrc522 = require("rfidRead-MFRC522");

var Callback = function(){
  this.onStart = function(){
    console.log('onStart');
  };

  this.onUid = function(uid){
    console.log('onUid');
    console.log(uid);
  };

  this.onExit = function(){
    console.log('onExit');
  };
};
mfrc522.start( new Callback() );