public class UnknownXBeePacket extends XBeeAPIPacket
XBeeAPIPacketNO_FRAME_ID| Constructor and Description | 
|---|
UnknownXBeePacket(int apiIDValue,
                 byte[] rfData)
Class constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static UnknownXBeePacket | 
createPacket(byte[] payload)
Creates a new  
UnknownXBeePacket from the given payload. | 
byte[] | 
getRFData()
Returns the XBee RF Data of the packet. 
 | 
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 XBee RF Data. 
 | 
checkFrameID, getAPIData, getFrameID, getFrameType, getFrameTypeValue, getPacketData, setFrameIDgenerateByteArray, generateByteArrayEscaped, getChecksum, getPacketLength, getParameters, parsePacket, parsePacket, toPrettyString, toStringpublic UnknownXBeePacket(int apiIDValue, byte[] rfData)
apiIDValue - The XBee API integer value of the packet.rfData - The XBee RF Data.IllegalArgumentException - if apiIDValue < 0 or
                                  if apiIDValue > 255.public static UnknownXBeePacket createPacket(byte[] payload)
UnknownXBeePacket from the given payload.payload - The API frame payload. The first byte will be the frame 
                type.
                The byte array must be in OperatingMode.API mode.IllegalArgumentException - if payload.length < .NullPointerException - if payload == null.public byte[] getRFData()
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 setRFData(byte[] rfData)
rfData - The new XBee RF Data.© Copyright 2014–2014 Digi International Inc. All rights reserved.