com.rapplogic.xbee.api.zigbee
Class ZNetExplicitTxRequest

java.lang.Object
  extended by com.rapplogic.xbee.api.XBeeRequest
      extended by com.rapplogic.xbee.api.zigbee.ZNetTxRequest
          extended by com.rapplogic.xbee.api.zigbee.ZNetExplicitTxRequest
All Implemented Interfaces:
java.io.Serializable

public class ZNetExplicitTxRequest
extends ZNetTxRequest

Series 2 XBee. Sends a packet to a remote radio. The remote radio receives the packet as a ZNetExplicitRxResponse packet.

Radio must be configured for explicit frames to use this class (AO=1)

API ID: 0x11

Author:
andrew
See Also:
Serialized Form

Nested Class Summary
static class ZNetExplicitTxRequest.ClusterId
           
static class ZNetExplicitTxRequest.Endpoint
           
 
Nested classes/interfaces inherited from class com.rapplogic.xbee.api.zigbee.ZNetTxRequest
ZNetTxRequest.Option
 
Field Summary
static DoubleByte zdoProfileId
           
static DoubleByte znetProfileId
           
 
Fields inherited from class com.rapplogic.xbee.api.zigbee.ZNetTxRequest
DEFAULT_BROADCAST_RADIUS, ZNET_MAX_PAYLOAD_SIZE
 
Fields inherited from class com.rapplogic.xbee.api.XBeeRequest
DEFAULT_FRAME_ID, NO_RESPONSE_FRAME_ID
 
Constructor Summary
ZNetExplicitTxRequest(int frameId, XBeeAddress64 dest64, XBeeAddress16 dest16, int broadcastRadius, ZNetTxRequest.Option option, int[] payload, int sourceEndpoint, int destinationEndpoint, DoubleByte clusterId, DoubleByte profileId)
           
 
Method Summary
 ApiId getApiId()
           
 DoubleByte getClusterId()
           
 int getDestinationEndpoint()
           
 int[] getFrameData()
          Gets frame data from tx request (super) and inserts necessary bytes
 DoubleByte getProfileId()
           
 int getSourceEndpoint()
           
 void setClusterId(DoubleByte clusterId)
           
 void setDestinationEndpoint(int destinationEndpoint)
           
 void setProfileId(DoubleByte profileId)
           
 void setSourceEndpoint(int sourceEndpoint)
           
 java.lang.String toString()
           
 
Methods inherited from class com.rapplogic.xbee.api.zigbee.ZNetTxRequest
getBroadcastRadius, getDestAddr16, getDestAddr64, getFrameDataAsIntArrayOutputStream, getMaxPayloadSize, getOption, getPayload, setBroadcastRadius, setDestAddr16, setDestAddr64, 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
 

Field Detail

znetProfileId

public static final DoubleByte znetProfileId

zdoProfileId

public static final DoubleByte zdoProfileId
Constructor Detail

ZNetExplicitTxRequest

public ZNetExplicitTxRequest(int frameId,
                             XBeeAddress64 dest64,
                             XBeeAddress16 dest16,
                             int broadcastRadius,
                             ZNetTxRequest.Option option,
                             int[] payload,
                             int sourceEndpoint,
                             int destinationEndpoint,
                             DoubleByte clusterId,
                             DoubleByte profileId)
Method Detail

getFrameData

public int[] getFrameData()
Gets frame data from tx request (super) and inserts necessary bytes

Overrides:
getFrameData in class ZNetTxRequest

getApiId

public ApiId getApiId()
Overrides:
getApiId in class ZNetTxRequest

getSourceEndpoint

public int getSourceEndpoint()

setSourceEndpoint

public void setSourceEndpoint(int sourceEndpoint)

getDestinationEndpoint

public int getDestinationEndpoint()

setDestinationEndpoint

public void setDestinationEndpoint(int destinationEndpoint)

getClusterId

public DoubleByte getClusterId()

setClusterId

public void setClusterId(DoubleByte clusterId)

getProfileId

public DoubleByte getProfileId()

setProfileId

public void setProfileId(DoubleByte profileId)

toString

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