RFID::Reader::Serial - Abstract base class for readers implemented over a serial connection.
This is an abstract base class used for building an RFID Reader class implemented over a TCP connection. It provides the basic I/O methods that an object based on RFID::Reader will expect, and generally a reader based on this class will simply inherit from it and add a few details. In other words, this class is fairly complete, and you shouldn't have to add much to it to make it workable.
This constructor accepts its parameters as a hash. Any unrecognized arguments are intrepeted as parameters to the set method.
The following parameters are accepted:
The serial port object that communication should take place over. The object should be compatible with Win32::SerialPort; the Unix equivalent is Device::SerialPort. You are responsible for creating the serial port object.
The maximum time to wait for a response from the reader, in seconds.
An integer specifying the speed at which communication should take place.
Scott Gifford <firstname.lastname@example.org>, <email@example.com>
Copyright (C) 2004-2006 The Regents of the University of Michigan.
See the file LICENSE included with the distribution for license information.