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:
e7a17d7
)
pass HEX AFI in security to json
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 28 Jul 2010 14:18:24 +0000
(16:18 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 28 Jul 2010 14:18:24 +0000
(16:18 +0200)
scripts/RFID-JSONP-server.pl
patch
|
blob
|
history
diff --git
a/scripts/RFID-JSONP-server.pl
b/scripts/RFID-JSONP-server.pl
index
5c47daf
..
7b0119a
100755
(executable)
--- a/
scripts/RFID-JSONP-server.pl
+++ b/
scripts/RFID-JSONP-server.pl
@@
-75,7
+75,7
@@
sub http_server {
foreach my $tag ( keys %$tags ) {
my $hash = RFID::Serial::Decode::RFID501->to_hash( $tags->{$tag} );
$hash->{sid} = $tag;
- $hash->{security} = $rfid->read_afi( $tag );
+ $hash->{security} =
uc unpack 'H*',
$rfid->read_afi( $tag );
push @{ $json->{tags} }, $hash;
};
warn "#### ", encode_json($json);