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:
8130d56
)
dump tags on STDOUT
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 27 Jul 2010 10:00:55 +0000
(12:00 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 27 Jul 2010 10:00:55 +0000
(12:00 +0200)
scripts/scan.pl
patch
|
blob
|
history
diff --git
a/scripts/scan.pl
b/scripts/scan.pl
index
3bf7dd2
..
d28eb61
100755
(executable)
--- a/
scripts/scan.pl
+++ b/
scripts/scan.pl
@@
-3,6
+3,8
@@
use warnings;
use strict;
+use Data::Dump qw(dump);
+
use lib 'lib';
foreach my $reader ( '3M810', 'CPRM02' ) {
@@
-10,6
+12,10
@@
foreach my $reader ( '3M810', 'CPRM02' ) {
eval "use $module";
die $@ if $@;
my $rfid = $module->new( device => '/dev/ttyUSB0' );
- $rfid->scan;
+ my $visible = $rfid->scan;
+ foreach my $tag ( keys %$visible ) {
+ warn "XXX $tag";
+ print "$tag\t", join('', @{ $visible->{$tag} }), $/;
+ }
}