com.rapplogic.xbee.api.zigbee
Class ZNetTxStatusResponse
java.lang.Object
com.rapplogic.xbee.api.XBeeResponse
com.rapplogic.xbee.api.XBeeFrameIdResponse
com.rapplogic.xbee.api.zigbee.ZNetTxStatusResponse
- All Implemented Interfaces:
- java.io.Serializable
public class ZNetTxStatusResponse
- extends XBeeFrameIdResponse
Series 2 XBee. This is sent out the UART of the transmitting XBee immediately following
a Transmit packet. Indicates if the Transmit packet (ZNetTxRequest)
was successful.
API ID: 0x8b
- Author:
- andrew
- See Also:
- Serialized Form
Methods inherited from class com.rapplogic.xbee.api.XBeeResponse |
equals, finish, getApiId, getChecksum, getLength, getPacketBytes, getProcessedPacketBytes, getRawPacketBytes, hashCode, isError, setApiId, setChecksum, setError, setLength, setRawPacketBytes |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ZNetTxStatusResponse
public ZNetTxStatusResponse()
getRemoteAddress16
public XBeeAddress16 getRemoteAddress16()
setRemoteAddress16
public void setRemoteAddress16(XBeeAddress16 remoteAddress)
getRetryCount
public int getRetryCount()
setRetryCount
public void setRetryCount(int retryCount)
getDeliveryStatus
public ZNetTxStatusResponse.DeliveryStatus getDeliveryStatus()
setDeliveryStatus
public void setDeliveryStatus(ZNetTxStatusResponse.DeliveryStatus deliveryStatus)
getDiscoveryStatus
public ZNetTxStatusResponse.DiscoveryStatus getDiscoveryStatus()
setDiscoveryStatus
public void setDiscoveryStatus(ZNetTxStatusResponse.DiscoveryStatus discoveryStatus)
isSuccess
public boolean isSuccess()
- Returns true if the delivery status is SUCCESS
- Returns:
parse
public void parse(IPacketParser parser)
throws java.io.IOException
- Description copied from class:
XBeeResponse
- All subclasses must implement to parse the packet from the input stream.
The subclass must parse all bytes in the packet starting after the API_ID, and
up to but not including the checksum. Reading either more or less bytes that expected will
result in an error.
- Specified by:
parse
in class XBeeResponse
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class XBeeFrameIdResponse