com.rapplogic.xbee.api.wpan
Class TxRequest64
java.lang.Object
com.rapplogic.xbee.api.XBeeRequest
com.rapplogic.xbee.api.wpan.TxRequestBase
com.rapplogic.xbee.api.wpan.TxRequest64
- All Implemented Interfaces:
- java.io.Serializable
public class TxRequest64
- extends TxRequestBase
Series 1 XBee. 64-bit address Transmit Packet. This is received on the destination XBee
radio as a RxResponse64 response
Constructs frame data portion of a 64-bit transmit request
Note: The MY address of the receiving XBee must be set to 0xffff to receive this as a RxResponse64;
otherwise the packet will be transmitted but will be received as a RxResponse16
API ID: 0x0
- Author:
- andrew
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TxRequest64
public TxRequest64(XBeeAddress64 destination,
int[] payload)
- 16 bit Tx Request with default frame id and awk option
- Parameters:
destinationAddress
- payload
-
TxRequest64
public TxRequest64(XBeeAddress64 destination,
int frameId,
int[] payload)
- 16 bit Tx Request.
Keep in mind that if you programmed the destination address with AT commands, it is in Hex,
so prepend int with 0x (e.g. 0x1234).
Payload size is limited to 100 bytes, according to MaxStream documentation.
- Parameters:
destinationAddress
- awkFrameId
- payload
-
TxRequest64
public TxRequest64(XBeeAddress64 remoteAddr64,
int frameId,
TxRequestBase.Option option,
int[] payload)
- Note: if option is DISABLE_ACK_OPTION you will not get a ack response and you must use the asynchronous send method
- Parameters:
destinationAddress
- awkFrameId
- payload
- option
-
getFrameData
public int[] getFrameData()
- Specified by:
getFrameData
in class XBeeRequest
getApiId
public ApiId getApiId()
- Overrides:
getApiId
in class XBeeRequest
getRemoteAddr64
public XBeeAddress64 getRemoteAddr64()
setRemoteAddr64
public void setRemoteAddr64(XBeeAddress64 remoteAddr64)
toString
public java.lang.String toString()
- Overrides:
toString
in class TxRequestBase