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:
262c25a
)
use new to_hash
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 6 Feb 2014 11:06:30 +0000
(12:06 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 6 Feb 2014 11:06:30 +0000
(12:06 +0100)
This allows code to decode both 15693 and 14443 cards
scripts/RFID-JSONP-server.pl
patch
|
blob
|
history
diff --git
a/scripts/RFID-JSONP-server.pl
b/scripts/RFID-JSONP-server.pl
index
b631265
..
dda08c8
100755
(executable)
--- a/
scripts/RFID-JSONP-server.pl
+++ b/
scripts/RFID-JSONP-server.pl
@@
-97,7
+97,7
@@
sub http_server {
my @tags = $rfid->tags;
my $json = { time => time() };
foreach my $tag ( @tags ) {
- my $hash =
Biblio::RFID::RFID501->to_hash( $rfid->blocks( $tag )
);
+ my $hash =
$rfid->to_hash( $tag
);
$hash->{sid} = $tag;
$hash->{security} = uc unpack 'H*', $rfid->afi( $tag );
push @{ $json->{tags} }, $hash;