com.thingmagic
Interface TransportListener
public interface TransportListener
The listener interface for receiving low-level packets sent to
and received from the device. The class that is interested in
observing packets implements this interface, and the object
created with that class is registered with
addTransportListener(). When data is sent to the device, the message
method is invoked with tx set to true; when data is received from
the device, the message method is invoked with tx set to false.
Method Summary |
void |
message(boolean tx,
byte[] data,
int timeout)
Invoked when a data packet is sent or received |
message
void message(boolean tx,
byte[] data,
int timeout)
- Invoked when a data packet is sent or received
- Parameters:
data
- the packet, as bytestx
- whether the packet was sent to the device or received
from the devicetimeout
- the timeout specified for this transaction