Biblio::RFID::Reader - simple way to write RFID applications in perl
This module will probe all available readers and use calls from Biblio::RFID::Reader::API to invoke correct reader.
my $rfid = Biblio::RFID::Reader->new( 'optional reader filter' );
my @visible = $rfid->tags( enter => sub { my $tag = shift; }, leave => sub { my $tag = shift; }, reader => sub { my $reader = shift; ref($reader) =~ m/something/ }, );
my $blocks_arrayref = $rfid->blocks( $tag );
my $afi = $rfid->afi( $tag );
$self->to_hash( $tag );
$self->debug(1); # or more
my $reader = $self->from_reader( $tag );
$rfid->_invalidate_tag( $tag );
Probe each RFID reader supported and returns succefull ones
my $rfid_readers = Biblio::RFID::Reader->_available( $regex_filter );
On any other function calls, we just marshall to all readers
Biblio::RFID::Reader::3M810
Biblio::RFID::Reader::CPRM02
Biblio::RFID::Reader::librfid
To install Biblio::RFID, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Biblio::RFID
CPAN shell
perl -MCPAN -e shell install Biblio::RFID
For more information on module installation, please visit the detailed CPAN module installation guide.