com.rapplogic.xbee.api
Class AtCommand

java.lang.Object
  extended by com.rapplogic.xbee.api.XBeeRequest
      extended by com.rapplogic.xbee.api.AtCommand
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AtCommandQueue, RemoteAtRequest

public class AtCommand
extends XBeeRequest

API technique to set/query commands

WARNING: Any changes made will not survive a power cycle unless written to memory with WR command According to the manual, the WR command can only be written so many times.. however many that is.

API ID: 0x8

Determining radio type with HV:
Byte 1, Part Number
x17, XB24 (series 1)
x18, XBP24 (series 1)
x19, XB24-B (series 2)
x1A, XBP24-B (series 2)

XB24-ZB
XBP24-ZB

Author:
andrew
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.rapplogic.xbee.api.XBeeRequest
DEFAULT_FRAME_ID, NO_RESPONSE_FRAME_ID
 
Constructor Summary
AtCommand(java.lang.String command)
           
AtCommand(java.lang.String command, int value)
           
AtCommand(java.lang.String command, int[] value)
           
AtCommand(java.lang.String command, int[] value, int frameId)
          Warning: frameId must be > 0 for a response
 
Method Summary
 ApiId getApiId()
           
 java.lang.String getCommand()
           
 int[] getFrameData()
           
 int[] getValue()
           
 void setCommand(java.lang.String command)
           
 void setValue(int[] value)
           
 java.lang.String toString()
           
 
Methods inherited from class com.rapplogic.xbee.api.XBeeRequest
getFrameId, getXBeePacket, setApiId, setFrameId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AtCommand

public AtCommand(java.lang.String command)

AtCommand

public AtCommand(java.lang.String command,
                 int value)

AtCommand

public AtCommand(java.lang.String command,
                 int[] value)

AtCommand

public AtCommand(java.lang.String command,
                 int[] value,
                 int frameId)
Warning: frameId must be > 0 for a response

Parameters:
command -
value -
frameId -
Method Detail

getFrameData

public int[] getFrameData()
Specified by:
getFrameData in class XBeeRequest

getApiId

public ApiId getApiId()
Overrides:
getApiId in class XBeeRequest

getCommand

public java.lang.String getCommand()

setCommand

public void setCommand(java.lang.String command)

getValue

public int[] getValue()

setValue

public void setValue(int[] value)

toString

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