a Node.js addon to access FeliCa with SONY PaSoRi(RC-S310,RC-S320,RC-S330).
This is a wrapper library selectively using one of multiple implementations : libpafe for Linux/OS X plathome or felicalib for Windows plathome.
You'll need to install libpafe (Note: You should reinstall a forked version of libpafe to support felica_write related functions) or felicalib beforehand.
Then, just run:
npm install
var SYSTEM_CODE_FELICA_LITE = 0x88B4;
var pafe = require('libpafe');
var pasori = new pafe.Pasori();
pasori.polling(SYSTEM_CODE_FELICA_LITE, 0,
function(felica){
if(felica){
console.log('idm:', felica.getIDm());
console.log('pmm:', felica.getPMm());
felica.close();
pasori.close();
}
}
);
GPL-2.0
- Hiroya Kubo [email protected], Faculty of Global Studies, Chiba University of Commerce, Japan.