public class TransmitStatusPacket extends XBeeAPIPacket
When a Transmit Request is completed, the module sends a Transmit Status message. This message will indicate if the packet was transmitted successfully or if there was a failure.
This packet is the response to standard and explicit transmit requests.
TransmitPacketNO_FRAME_ID| Constructor and Description |
|---|
TransmitStatusPacket(int frameID,
XBee16BitAddress destAddress16,
int tranmistRetryCount,
XBeeTransmitStatus transmitStatus,
XBeeDiscoveryStatus discoveryStatus)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static TransmitStatusPacket |
createPacket(byte[] payload)
Creates a new
TransmitStatusPacket 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.
|
XBeeDiscoveryStatus |
getDiscoveryStatus()
Returns the discovery status.
|
int |
getTransmitRetryCount()
Returns the transmit retry count.
|
XBeeTransmitStatus |
getTransmitStatus()
Returns the transmit status.
|
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.
|
checkFrameID, getAPIData, getFrameID, getFrameType, getFrameTypeValue, getPacketData, setFrameIDgenerateByteArray, generateByteArrayEscaped, getChecksum, getPacketLength, getParameters, parsePacket, parsePacket, toPrettyString, toStringpublic TransmitStatusPacket(int frameID, XBee16BitAddress destAddress16, int tranmistRetryCount, XBeeTransmitStatus transmitStatus, XBeeDiscoveryStatus discoveryStatus)
TransmitStatusPacket
object with the given parameters.frameID - Frame ID.destAddress16 - 16-bit Network address the packet was delivered to.tranmistRetryCount - The number of application transmission retries
that took place.transmitStatus - Transmit status.discoveryStatus - Discovery status.IllegalArgumentException - if frameID < 0 or
if frameID > 255 or
if tranmistRetryCount < 0 or
if tranmistRetryCount > 255.NullPointerException - if destAddress16 == null or
if transmitStatus == null or
if discoveryStatus == null.XBeeDiscoveryStatus,
XBeeTransmitStatus,
XBee16BitAddresspublic static TransmitStatusPacket createPacket(byte[] payload)
TransmitStatusPacket object from the given payload.payload - The API frame payload. It must start with the frame type
corresponding to a Transmit Status packet (0x8B).
The byte array must be in OperatingMode.API mode.IllegalArgumentException - if payload[0] != APIFrameType.TRANSMIT_STATUS.getValue() or
if payload.length < or
if frameID < 0 or
if frameID > 255 or
if tranmistRetryCount < 0 or
if tranmistRetryCount > 255.NullPointerException - if payload == null.public XBee16BitAddress get16bitDestinationAddress()
XBee16BitAddresspublic LinkedHashMap<String,String> getAPIPacketParameters()
XBeeAPIPacketpublic XBeeDiscoveryStatus getDiscoveryStatus()
XBeeDiscoveryStatuspublic int getTransmitRetryCount()
public XBeeTransmitStatus getTransmitStatus()
XBeeTransmitStatuspublic 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.© Copyright 2014?2015 Digi International Inc. All rights reserved.