public class ATCommandQueuePacket extends XBeeAPIPacket
Used to query or set module parameters on the local device. In contrast
 to the ATCommandPacket API packet, new parameter values are queued 
 and not applied until either an ATCommandPacket is sent or the 
 applyChanges() method of the XBeeDevice is issued.
Register queries (reading parameter values) are returned immediately.
Command response is received as an ATCommandResponsePacket.
ATCommandPacket, 
ATCommandResponsePacket, 
XBeeAPIPacketNO_FRAME_ID| Constructor and Description | 
|---|
ATCommandQueuePacket(int frameID,
                    String command,
                    byte[] parameter)
Class constructor. 
 | 
ATCommandQueuePacket(int frameID,
                    String command,
                    String parameter)
Class constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static ATCommandQueuePacket | 
createPacket(byte[] payload)
Creates a new  
ATCommandQueuePacket object from the given 
 payload. | 
LinkedHashMap<String,String> | 
getAPIPacketParameters()
Returns a map with the XBee packet parameters and their values. 
 | 
String | 
getCommand()
Returns the AT command. 
 | 
byte[] | 
getParameter()
Returns the AT command parameter. 
 | 
String | 
getParameterAsString()
Returns the AT command parameter as String. 
 | 
boolean | 
isBroadcast()
Returns whether or not the packet is a broadcast packet. 
 | 
boolean | 
needsAPIFrameID()
Returns whether the API packet needs API Frame ID or not. 
 | 
void | 
setParameter(byte[] parameter)
Sets the AT command parameter. 
 | 
void | 
setParameter(String parameter)
Sets the AT command parameter as String. 
 | 
checkFrameID, getAPIData, getFrameID, getFrameType, getFrameTypeValue, getPacketData, setFrameIDgenerateByteArray, generateByteArrayEscaped, getChecksum, getPacketLength, getParameters, parsePacket, parsePacket, toPrettyString, toStringpublic ATCommandQueuePacket(int frameID, String command, byte[] parameter)
ATCommandQueuePacket 
 object with the given parameters.frameID - XBee API frame ID.command - AT command.parameter - AT command parameter null if it is not required.IllegalArgumentException - if frameID < 0 or
                                  if frameID > 255.NullPointerException - if command == null.public ATCommandQueuePacket(int frameID, String command, String parameter)
ATCommandQueuePacket 
 object with the given parameters.frameID - XBee API frame ID.command - AT command.parameter - AT command parameter as String, null if it is 
                  not required.IllegalArgumentException - if frameID < 0 or
                                  if frameID > 255.NullPointerException - if command == null.public static ATCommandQueuePacket createPacket(byte[] payload)
ATCommandQueuePacket object from the given 
 payload.payload - The API frame payload. It must start with the frame type 
                corresponding to a AT Command Queue packet 
                (0x09). The byte array must be in 
                OperatingMode.API mode.IllegalArgumentException - if payload[0] != APIFrameType.AT_COMMAND_QUEUE.getValue() or
                                  if payload.length <  or
                                  if frameID < 0 or
                                  if frameID > 255.NullPointerException - if payload == null.public LinkedHashMap<String,String> getAPIPacketParameters()
XBeeAPIPacketpublic String getCommand()
public byte[] getParameter()
public String getParameterAsString()
null if no parameter 
         is set.public boolean isBroadcast()
XBeeAPIPacketisBroadcast in class XBeeAPIPackettrue if the packet is a broadcast packet, false 
         otherwise.public boolean needsAPIFrameID()
XBeeAPIPacketneedsAPIFrameID in class XBeeAPIPackettrue if the packet needs API Frame ID, false 
         otherwise.public void setParameter(byte[] parameter)
parameter - The AT command parameter.public void setParameter(String parameter)
parameter - The AT command parameter as String.© Copyright 2014–2014 Digi International Inc. All rights reserved.