com.rapplogic.xbee.api.wpan
Class TxRequest64

java.lang.Object
  extended by com.rapplogic.xbee.api.XBeeRequest
      extended by com.rapplogic.xbee.api.wpan.TxRequestBase
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class com.rapplogic.xbee.api.wpan.TxRequestBase
TxRequestBase.Option
 
Field Summary
 
Fields inherited from class com.rapplogic.xbee.api.wpan.TxRequestBase
MAX_PAYLOAD_SIZE
 
Fields inherited from class com.rapplogic.xbee.api.XBeeRequest
DEFAULT_FRAME_ID, NO_RESPONSE_FRAME_ID
 
Constructor Summary
TxRequest64(XBeeAddress64 destination, int[] payload)
          16 bit Tx Request with default frame id and awk option
TxRequest64(XBeeAddress64 destination, int frameId, int[] payload)
          16 bit Tx Request.
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
 
Method Summary
 ApiId getApiId()
           
 int[] getFrameData()
           
 XBeeAddress64 getRemoteAddr64()
           
 void setRemoteAddr64(XBeeAddress64 remoteAddr64)
           
 java.lang.String toString()
           
 
Methods inherited from class com.rapplogic.xbee.api.wpan.TxRequestBase
getMaxPayloadSize, getOption, getPayload, setMaxPayloadSize, setOption, setPayload
 
Methods inherited from class com.rapplogic.xbee.api.XBeeRequest
getFrameId, getXBeePacket, setApiId, setFrameId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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