RFID::Matrics::Tag - Object representing a single proprietary Matrics tag.
These objects are usually returned by an RFID::Matrics::Reader object:
use RFID::Matrics::Tag qw(tag2txt);
my $rff = RFID::Matrics::Reader->new->readfullfield(antenna => MATRICS_ANT_1);
foreach my $tag (@{$pp->{utags}})
{
print "I see tag $tag->{id}\n";
}
But you can create your own if you want:
my $tag = RFID::Matrics::Tag->new(type => MATRICS_TAGTYPE_EPC,
id = "c80507a8009609de");
print "Tag is $tag->{id}\n";
The constants MATRICS_TAGTYPE_EPC, MATRICS_TAGTYPE_MATRICS, and
MATRICS_TAGTYPE_OLDMATRICS are recognized tag types. They can be
imported into your namespace with the :tagtypes tag.
Creates a new RFID::Matrics::Tag object. Takes a hash containing various settings as its parameters:
A comparison function for sort. Compares the ID numbers of two
tags, and returns -1 if the first ID is lower, 0 if they are the same,
or 1 if the first ID is higher.
the RFID::Tag manpage, the RFID::EPC::Tag manpage, the RFID::Matrics::Reader manpage, http://www.eecs.umich.edu/~wherefid/code/rfid-perl/.
Scott Gifford <gifford@umich.edu>, <sgifford@suspectclass.com>
Copyright (C) 2004 The Regents of the University of Michigan.
See the file LICENSE included with the distribution for license information.