com.rapplogic.xbee.api
Class ModemStatusResponse

java.lang.Object
  extended by com.rapplogic.xbee.api.XBeeResponse
      extended by com.rapplogic.xbee.api.ModemStatusResponse
All Implemented Interfaces:
NoRequestResponse, java.io.Serializable

public class ModemStatusResponse
extends XBeeResponse
implements NoRequestResponse

RF module status messages are sent from the module in response to specific conditions.

API ID: 0x8a

Author:
andrew
See Also:
Serialized Form

Nested Class Summary
static class ModemStatusResponse.Status
           
 
Constructor Summary
ModemStatusResponse()
           
 
Method Summary
 ModemStatusResponse.Status getStatus()
           
protected  void parse(IPacketParser parser)
          All subclasses must implement to parse the packet from the input stream.
 void setStatus(ModemStatusResponse.Status status)
           
 java.lang.String toString()
           
 
Methods inherited from class com.rapplogic.xbee.api.XBeeResponse
equals, finish, getApiId, getChecksum, getLength, getPacketBytes, getProcessedPacketBytes, getRawPacketBytes, hashCode, isError, setApiId, setChecksum, setError, setLength, setRawPacketBytes
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModemStatusResponse

public ModemStatusResponse()
Method Detail

getStatus

public ModemStatusResponse.Status getStatus()

setStatus

public void setStatus(ModemStatusResponse.Status status)

parse

protected void parse(IPacketParser parser)
              throws java.io.IOException
Description copied from class: XBeeResponse
All subclasses must implement to parse the packet from the input stream. The subclass must parse all bytes in the packet starting after the API_ID, and up to but not including the checksum. Reading either more or less bytes that expected will result in an error.

Specified by:
parse in class XBeeResponse
Throws:
java.io.IOException

toString

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