com.rapplogic.xbee.api.zigbee
Class ZNetRxBaseResponse

java.lang.Object
  extended by com.rapplogic.xbee.api.XBeeResponse
      extended by com.rapplogic.xbee.api.zigbee.ZNetRxBaseResponse
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ZNetRxIoSampleResponse, ZNetRxResponse

public abstract class ZNetRxBaseResponse
extends XBeeResponse

Series 2 XBee. Super class of all Receive packets.

Note: ZNet RX packets do not include RSSI since it is a mesh network and potentially requires several hops to get to the destination. The RSSI of the last hop is available using the DB AT command. If your network is not mesh (i.e. composed of a single coordinator and end devices -- no routers) then the DB command should provide accurate RSSI.

Author:
Andrew Rapp
See Also:
Serialized Form

Nested Class Summary
static class ZNetRxBaseResponse.Option
           
 
Constructor Summary
ZNetRxBaseResponse()
           
 
Method Summary
 ZNetRxBaseResponse.Option getOption()
           
 XBeeAddress16 getRemoteAddress16()
           
 XBeeAddress64 getRemoteAddress64()
           
protected  void parseAddress(IPacketParser parser)
           
protected  void parseOption(IPacketParser parser)
           
 void setOption(ZNetRxBaseResponse.Option option)
           
 void setRemoteAddress16(XBeeAddress16 remoteAddress16)
           
 void setRemoteAddress64(XBeeAddress64 remoteAddress64)
           
 java.lang.String toString()
           
 
Methods inherited from class com.rapplogic.xbee.api.XBeeResponse
equals, finish, getApiId, getChecksum, getLength, getPacketBytes, getProcessedPacketBytes, getRawPacketBytes, hashCode, isError, parse, setApiId, setChecksum, setError, setLength, setRawPacketBytes
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZNetRxBaseResponse

public ZNetRxBaseResponse()
Method Detail

getRemoteAddress64

public XBeeAddress64 getRemoteAddress64()

setRemoteAddress64

public void setRemoteAddress64(XBeeAddress64 remoteAddress64)

getRemoteAddress16

public XBeeAddress16 getRemoteAddress16()

setRemoteAddress16

public void setRemoteAddress16(XBeeAddress16 remoteAddress16)

getOption

public ZNetRxBaseResponse.Option getOption()

setOption

public void setOption(ZNetRxBaseResponse.Option option)

parseAddress

protected void parseAddress(IPacketParser parser)
                     throws java.io.IOException
Throws:
java.io.IOException

parseOption

protected void parseOption(IPacketParser parser)
                    throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class XBeeResponse