com.rapplogic.xbee.api
Class AtCommandResponse

java.lang.Object
  extended by com.rapplogic.xbee.api.XBeeResponse
      extended by com.rapplogic.xbee.api.XBeeFrameIdResponse
          extended by com.rapplogic.xbee.api.AtCommandResponse
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RemoteAtResponse

public class AtCommandResponse
extends XBeeFrameIdResponse

Sent in response to an AtCommand

API ID: 0x88

Author:
andrew
See Also:
Serialized Form

Nested Class Summary
static class AtCommandResponse.Status
           
 
Constructor Summary
AtCommandResponse()
           
 
Method Summary
 int getChar1()
           
 int getChar2()
           
 java.lang.String getCommand()
           
 AtCommandResponse.Status getStatus()
           
 int[] getValue()
          Returns the command data byte array.
 boolean isOk()
           
 void setChar1(int char1)
           
 void setChar2(int char2)
           
 void setStatus(AtCommandResponse.Status status)
           
 void setValue(int[] data)
           
 java.lang.String toString()
           
 
Methods inherited from class com.rapplogic.xbee.api.XBeeFrameIdResponse
getFrameId, setFrameId
 
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

AtCommandResponse

public AtCommandResponse()
Method Detail

getChar1

public int getChar1()

setChar1

public void setChar1(int char1)

getChar2

public int getChar2()

setChar2

public void setChar2(int char2)

getStatus

public AtCommandResponse.Status getStatus()

setStatus

public void setStatus(AtCommandResponse.Status status)

isOk

public boolean isOk()

getValue

public int[] getValue()
Returns the command data byte array. A zero length array will be returned if the command data is not specified. This is the case if the at command set a value, or executed a command that does not have a value (like FR)

Returns:

setValue

public void setValue(int[] data)

getCommand

public java.lang.String getCommand()

toString

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