Sun SPOT Telemetry Demo -- SPOT-side
v1.1

org.sunspotworld.demo.util
Interface PacketHandler

All Known Implementing Classes:
AccelMonitor, TelemetryMain

public interface PacketHandler

Interface used by a class wanting to be called back when packets are received with a packet type that the class has registered an interest in receiving. The contents of the first byte of the packet determines its type.

Author:
Ron Goldman
Date: July 31, 2007
See Also:
PacketReceiver

Method Summary
 void handlePacket(byte type, com.sun.spot.io.j2me.radiogram.Radiogram pkt)
          Application specific callback routine to receive packets that the class has registered with the PacketReceiver.
 

Method Detail

handlePacket

void handlePacket(byte type,
                  com.sun.spot.io.j2me.radiogram.Radiogram pkt)
Application specific callback routine to receive packets that the class has registered with the PacketReceiver.

Parameters:
type - the packet type = the first byte in the packet
pkt - the radiogram packet received

Sun SPOT Telemetry Demo -- SPOT-side
v1.1

Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.