public class TX16Packet extends XBeeAPIPacket
A TX Request message will cause the module to transmit data as an RF Packet.
XBeeAPIPacketNO_FRAME_ID| Constructor and Description | 
|---|
TX16Packet(int frameID,
          XBee16BitAddress destAddress16,
          int transmitOptions,
          byte[] rfData)
Class constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static TX16Packet | 
createPacket(byte[] payload)
Creates a new  
TX16Packet object from the given payload. | 
XBee16BitAddress | 
get16bitDestinationAddress()
Returns the 16-bit destination address. 
 | 
LinkedHashMap<String,String> | 
getAPIPacketParameters()
Returns a map with the XBee packet parameters and their values. 
 | 
byte[] | 
getRFData()
Returns the RF Data to send. 
 | 
int | 
getTransmitOptions()
Returns the transmit options bitfield. 
 | 
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 | 
setRFData(byte[] rfData)
Sets the RF data to send. 
 | 
checkFrameID, getAPIData, getFrameID, getFrameType, getFrameTypeValue, getPacketData, setFrameIDgenerateByteArray, generateByteArrayEscaped, getChecksum, getPacketLength, getParameters, parsePacket, parsePacket, toPrettyString, toStringpublic TX16Packet(int frameID, XBee16BitAddress destAddress16, int transmitOptions, byte[] rfData)
TX16Packet object with
 the given parameters.frameID - Frame ID.destAddress16 - 16-bit address of the destination device.transmitOptions - Bitfield of supported transmission options.rfData - RF Data that is sent to the destination device.IllegalArgumentException - if frameID < 0 or
                                  if frameID > 255 or
                                  if transmitOptions < 0 or
                                  if transmitOptions > 255.NullPointerException - if destAddress == null.XBeeTransmitOptions, 
XBee16BitAddresspublic static TX16Packet createPacket(byte[] payload)
TX16Packet object from the given payload.payload - The API frame payload. It must start with the frame type 
                corresponding to a TX16 Request packet (0x01).
                The byte array must be in OperatingMode.API mode.IllegalArgumentException - if payload[0] != APIFrameType.TX_16.getValue() or
                                  if payload.length <  or
                                  if frameID < 0 or
                                  if frameID > 255 or
                                  if transmitOptions < 0 or
                                  if transmitOptions > 255.NullPointerException - if payload == null.public XBee16BitAddress get16bitDestinationAddress()
XBee16BitAddresspublic LinkedHashMap<String,String> getAPIPacketParameters()
XBeeAPIPacketpublic byte[] getRFData()
public int getTransmitOptions()
XBeeTransmitOptionspublic 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 setRFData(byte[] rfData)
rfData - RF Data to send.© Copyright 2014–2014 Digi International Inc. All rights reserved.