put cardnumber from SmartX into content
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 4 Apr 2014 14:05:37 +0000 (16:05 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 4 Apr 2014 14:05:37 +0000 (16:05 +0200)
scripts/RFID-JSONP-server.pl

index 5baff85..974a316 100755 (executable)
@@ -141,6 +141,7 @@ sub http_server {
                                                        warn "ERROR ", dump($borrower);
                                                } else {
                                                        $hash->{borrower} = $borrower->{borrower};
+                                                       $hash->{content}  = $borrower->{borrower}->{cardnumber}; # compatibile with 3M tags
                                                }
                                        } else {
                                                $hash->{security} = uc unpack 'H*', $rfid->afi( $tag );