NAME

RFID::Libnfc::Reader - Access libnfc-compatible tag readers

SYNOPSIS

use RFID::Libnfc;

$r = RFID::Libnfc::Reader->new();
if ($r->init()) {
  printf ("Reader: %s\n", $r->name);
}

$tag = $r->connectTag(IM_ISO14443A_106);

DESCRIPTION

This reader class allows to access RFID tags 
(actually only mifare ones have been implemented/tested)
readable from any libnfc-compatible reader

EXPORT

None by default.

Exportable functions

METHODS

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

SEE ALSO

RFID::Libnfc RFID::Libnfc::Constants RFID::Libnfc::Tag

< check also documentation for libnfc c library [ http://www.libnfc.org/documentation/introduction ] >

AUTHOR

xant

COPYRIGHT AND LICENSE

Copyright (C) 2009 by xant <xant@xant.net>

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.

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 89:

'=item' outside of any '=over'

Around line 112:

You forgot a '=back' before '=head1'