[ANN] nfc 2.0.0 Released

  • Thread starter Aaron Patterson
  • Start date
A

Aaron Patterson

nfc version 2.0.0 has been released!

* <http://seattlerb.rubyforge.org>

NFC is a ruby wrapper for the Near Field Communication library. The Near
Field Communication library works with many USB RFID readers, so this gem
lets you read RFID tags.

Changes:

### 2.0.0 / 2009-08-07

* 2 major enhancements

* Switched from FFI to a C backend
* Now depends on libnfc 1.2.x

## FEATURES/PROBLEMS:

* Only supports ISO1443A (MIFARE) tags right now.

## SYNOPSIS:

require 'nfc'

# Read your tag and print the info.
p NFC.instance.find

# NFC#find will return immidiately, which means you should have a tag
# sitting on the reader when running it. If you'd like it to block until
# it detects a tag, give find a block like so:

NFC.instance.find do |tag|
p tag
end

# You can even run in an infinite loop if you'd like to continually find
# tags:

loop do
NFC.instance.find do |tag|
p tag
end
end

## REQUIREMENTS:

* A USB RFID reader. I'm using the touchatag[http://touchatag.com].
* libnfc

## INSTALL:

First install libnfc[http://libnfc.org/]
I installed libnfc like this:

$ ./configure --prefix=/usr/local
$ make && make install

The install the gem:

$ sudo gem install nfc

NOTE!!!! The nfc gem requires libnfc version 1.2.0 or greater!
 
A

Aaron Patterson

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top