Tx64Request Class Reference

Represents a Series 1 TX packet that corresponds to Api Id: TX_64_REQUEST. More...

#include <XBee.h>

Inheritance diagram for Tx64Request:

PayloadRequest XBeeRequest

List of all members.

Public Member Functions

 Tx64Request (XBeeAddress64 &addr64, uint8_t option, uint8_t *payload, uint8_t payloadLength, uint8_t frameId)
 Tx64Request (XBeeAddress64 &addr64, uint8_t *payload, uint8_t payloadLength)
 Creates a unicast Tx64Request with the ACK option and DEFAULT_FRAME_ID.
 Tx64Request ()
 Creates a default instance of this class.
XBeeAddress64getAddress64 ()
void setAddress64 (XBeeAddress64 &addr64)
uint8_t getOption ()
void setOption (uint8_t option)
uint8_t getFrameData (uint8_t pos)
 Starting after the frame id (pos = 0) and up to but not including the checksum Note: Unlike Digi's definition of the frame data, this does not start with the API ID.
uint8_t getFrameDataLength ()
 Returns the size of the api frame (not including frame id or api id or checksum).


Detailed Description

Represents a Series 1 TX packet that corresponds to Api Id: TX_64_REQUEST.

Be careful not to send a data array larger than the max packet size of your radio. This class does not perform any validation of packet size and there will be no indication if the packet is too large, other than you will not get a TX Status response. The datasheet says 100 bytes is the maximum, although that could change in future firmware.


Constructor & Destructor Documentation

Tx64Request::Tx64Request (  ) 

Creates a default instance of this class.

At a minimum you must specify a payload, payload length and a destination address before sending this request.


Member Function Documentation

uint8_t Tx64Request::getFrameData ( uint8_t  pos  )  [virtual]

Starting after the frame id (pos = 0) and up to but not including the checksum Note: Unlike Digi's definition of the frame data, this does not start with the API ID.

The reason for this is the API ID and Frame ID are common to all requests, whereas my definition of frame data is only the API specific data.

Implements XBeeRequest.


The documentation for this class was generated from the following files:

Generated on Wed Dec 21 17:21:21 2011 for XBee-Arduino by  doxygen 1.5.8