# Nfc 2.0.0 Released

**URL:** <https://www.ruby-forum.com/t/nfc-2-0-0-released/173412>\
**Category:** Ruby\
**Created:** [August 8, 2009, 7:26am UTC](https://www.ruby-forum.com/t/nfc-2-0-0-released/173412 "2009-08-08T07:26:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaronpowell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7bcc69/32.png) [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Post date:** [August 8, 2009, 7:26am UTC](https://www.ruby-forum.com/t/nfc-2-0-0-released/173412/1 "2009-08-08T07:26:57Z")

</div>

nfc version 2.0.0 has been released!

- [http://seattlerb.rubyforge.org](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

## 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](http://touchatag.com)].
- libnfc

## INSTALL:

First install libnfc[[http://libnfc.org/](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!

---

<div class="post-metadata">

**Author:** ![aaronpowell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7bcc69/32.png) [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Post date:** [August 9, 2009, 11:05pm UTC](https://www.ruby-forum.com/t/nfc-2-0-0-released/173412/2 "2009-08-09T23:05:34Z")

</div>

On Sat, Aug 08, 2009 at 02:26:20PM +0900, Aaron P. wrote:

> nfc version 2.0.0 has been released!
> 
> - [http://seattlerb.rubyforge.org](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.

I made a video of me using the RFID reader along with some sample code:

[http://www.flickr.com/photos/aaronp/3804698617/](http://www.flickr.com/photos/aaronp/3804698617/)  
[nfc\_and\_me.rb · GitHub](http://gist.github.com/164896)

Go innernet! This is truly the future (minus the jetpacks etc).
