Biblio::RFID::Reader(3pm) User Contributed Perl Documentation Biblio::RFID::Reader(3pm)

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

RFID reader implementations

Biblio::RFID::Reader::3M810

Biblio::RFID::Reader::CPRM02

Biblio::RFID::Reader::librfid

2023-05-24 perl v5.36.0