projects
/
Biblio-RFID.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5ee4a83
)
improve pod
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 3 Aug 2010 10:56:28 +0000
(12:56 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 3 Aug 2010 10:56:28 +0000
(12:56 +0200)
lib/RFID/Biblio.pm
patch
|
blob
|
history
diff --git
a/lib/RFID/Biblio.pm
b/lib/RFID/Biblio.pm
index
c7adf9e
..
29c06a9
100644
(file)
--- a/
lib/RFID/Biblio.pm
+++ b/
lib/RFID/Biblio.pm
@@
-11,7
+11,7
@@
use Data::Dump qw(dump);
=head1 NAME
=head1 NAME
-RFID::Biblio -
support serial RFID devices
+RFID::Biblio -
easy to use API for writing RFID enabled appliaction
=cut
=cut
@@
-27,17
+27,21
@@
which is sutable for direct mapping to REST JSONP service.
Perhaps a little code snippet.
Perhaps a little code snippet.
- use RFID::Biblio;
+
use RFID::Biblio;
- my $rfid = RFID::Biblio->new(
+
my $rfid = RFID::Biblio->new(
device => '/dev/ttyUSB0', # with fallback to RFID_DEVICE
);
device => '/dev/ttyUSB0', # with fallback to RFID_DEVICE
);
+
+ # invetory tags in reader range and read data from them
my $visible = $rfid->scan;
my $visible = $rfid->scan;
-=head1
SUBROUTINES/
METHODS
+=head1 METHODS
=head2 new
=head2 new
+Open serial port (if needed) and init reader
+
=cut
sub new {
=cut
sub new {
@@
-110,7
+114,7
@@
sub scan {
}
}
-=head1
MANDATORY IMPLEMENTATIONS
+=head1
READER IMPLEMENTATION
Each reader must implement following hooks as sub-classes.
Each reader must implement following hooks as sub-classes.