96 |
warn "WEB >> $path" if $debug; |
warn "WEB >> $path" if $debug; |
97 |
} elsif ( $method =~ m{/scan} ) { |
} elsif ( $method =~ m{/scan} ) { |
98 |
my $tags = scan_for_tags(); |
my $tags = scan_for_tags(); |
99 |
my $json = {}; |
my $json = { time => time() }; |
100 |
map { |
map { |
101 |
my $d = decode_tag($_); |
my $d = decode_tag($_); |
102 |
$d->{sid} = $_; |
$d->{sid} = $_; |
657 |
warn "## DISPATCH payload to with rest", dump( $payload, $to, $rest ) if $debug; |
warn "## DISPATCH payload to with rest", dump( $payload, $to, $rest ) if $debug; |
658 |
$dispatch->{ $to }->( $rest ); |
$dispatch->{ $to }->( $rest ); |
659 |
} else { |
} else { |
660 |
print "NO DISPATCH for ",dump( $full ),"\n"; |
print "NO DISPATCH for ",as_hex( $full ),"\n"; |
661 |
} |
} |
662 |
|
|
663 |
return $data; |
return $data; |