com.rapplogic.xbee.api.wpan
Class TxRequest16

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.TxRequest16
All Implemented Interfaces:
java.io.Serializable

public class TxRequest16
extends TxRequestBase

Series 1 XBee. 16-bit address Transmit Packet. This is received on the destination XBee radio as a RxResponse16 response

API ID: 0x1

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
TxRequest16(XBeeAddress16 remoteAddr16, int[] payload)
          16 bit Tx Request with default frame id and awk option Keep in mind that if you programmed the destination address with X-CTU, the unit is hex, so if you set MY=1234, use 0x1234.
TxRequest16(XBeeAddress16 remoteAddr16, int frameId, int[] payload)
          16 bit Tx Request with frame id argument Payload size is limited to 100 bytes, according to MaxStream documentation.
TxRequest16(XBeeAddress16 remoteAddr16, 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()
           
 XBeeAddress16 getRemoteAddr16()
           
 void setRemoteAddr16(XBeeAddress16 remoteAddr16)
           
 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

TxRequest16

public TxRequest16(XBeeAddress16 remoteAddr16,
                   int[] payload)
16 bit Tx Request with default frame id and awk option Keep in mind that if you programmed the destination address with X-CTU, the unit is hex, so if you set MY=1234, use 0x1234.

Parameters:
remoteAddr16 -
payload -

TxRequest16

public TxRequest16(XBeeAddress16 remoteAddr16,
                   int frameId,
                   int[] payload)
16 bit Tx Request with frame id argument Payload size is limited to 100 bytes, according to MaxStream documentation.

Parameters:
remoteAddr16 -
frameId -
payload -

TxRequest16

public TxRequest16(XBeeAddress16 remoteAddr16,
                   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:
remoteAddr16 -
frameId -
payload -
option -
Method Detail

getFrameData

public int[] getFrameData()
Specified by:
getFrameData in class XBeeRequest

getApiId

public ApiId getApiId()
Overrides:
getApiId in class XBeeRequest

getRemoteAddr16

public XBeeAddress16 getRemoteAddr16()

setRemoteAddr16

public void setRemoteAddr16(XBeeAddress16 remoteAddr16)

toString

public java.lang.String toString()
Overrides:
toString in class TxRequestBase