Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nesslab-reader-api

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nesslab-reader-api

Node module to rfid reader nesslab

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

nesslab-reader-api.js

Node module to rfid reader nesslab.

NPM

Module to make easy the communication to the h the NESSLAB RFid reader.

Tested only in NL_RF1000.

If you have another NESSLAB reader, please test it and report.

Install

Install using NPM:

$ npm install nessslab-reader-api

Usage

Require the module and connect to reader

  var reader = require('nesslab-reader-api');
  
  //Connecting
  reader.connect('192.168.0.100',5578);
  
  //On connect
  reader.on('connect', function(res){
  	console.log(res);
  	//Starting reading
  	reader.init();
  });
  
  //On tag
  reader.on('tag',function(res){
    //Nmber of tag
  	console.log(res.tag);
  	//Antenna
  	console.log(res.antenna);
  	//Antena+tag
  	console.log(res.tagId);
  });

What´s new?

Now, we are using sockets to connect directly to reader and send and receive data. Before we used C# to connect to reader, and spawn in Node.js to listen the C# binary program. But now the Node.js code can handle the reader directly using sockets.

Methods and Events

I am working in the Wiki to show you all methods and events. But you can just open the nesslab_reader.js file and see.

Keywords

FAQs

Package last updated on 09 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc