RFID::Libnfc::Reader - Access libnfc-compatible tag readers
use RFID::Libnfc; $r = RFID::Libnfc::Reader->new(); if ($r->init()) { printf ("Reader: %s\n", $r->name); } $tag = $r->connectTag(IM_ISO14443A_106);
This reader class allows to access RFID tags (actually only mifare ones have been implemented/tested) readable from any libnfc-compatible reader
None by default.
name ( )
returns the name of the current reader
for ex. $name = $r->name
connect ( TAGFAMILY, BLOCKING )
tries to connect a tag and returns a new ready-to-use RFID::Libnfc::Tag object or undef if no tag is found. If blocking is TRUE, connect won't return untill a tag is found in the field
for ex. $tag = $r->connect( ISO14443A_106 )
NOTE: ISO14443A_106 is the only type actually implemented/supported
pdi ( )
returns the underlying reader descriptor (to be used with the RFID::Libnfc procedural api) $pdi = $r->pdi
RFID::Libnfc RFID::Libnfc::Constants RFID::Libnfc::Tag
< check also documentation for libnfc c library [ http://www.libnfc.org/documentation/introduction ] >
xant
Copyright (C) 2009-2011 by xant <xant@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install RFID::Libnfc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RFID::Libnfc
CPAN shell
perl -MCPAN -e shell install RFID::Libnfc
For more information on module installation, please visit the detailed CPAN module installation guide.