Biblio::RFID::Reader(3pm)

Biblio::RFID::Reader3pm

Simple way to write rfid applications in perl

Overview

This module will probe all available readers and use calls from Biblio::RFID::Reader::API to invoke correct reader.

Functions

new

  my $rfid = Biblio::RFID::Reader->new( 'optional reader filter' );

tags

  my @visible = $rfid->tags(
                enter => sub { my $tag = shift; },
                leave => sub { my $tag = shift; },
                reader => sub { my $reader = shift; ref($reader) =~ m/something/ },
  );

blocks

  my $blocks_arrayref = $rfid->blocks( $tag );

afi

  my $afi = $rfid->afi( $tag );

to_hash

  $self->to_hash( $tag );

debug

  $self->debug(1); # or more

from_reader

  my $reader = $self->from_reader( $tag );

Private

_invalidate_tag

  $rfid->_invalidate_tag( $tag );

_available

Probe each RFID reader supported and returns succefull ones

  my $rfid_readers = Biblio::RFID::Reader->_available( $regex_filter );

Autoload

On any other function calls, we just marshall to all readers

From libbiblio-rfid-perl 0.05-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.