XBee-mbed library http://mbed.org/users/okini3939/notebook/xbee-mbed/

Dependents:   device_server_udp led_sender_post XBee_API_ex1 XBee_API_ex2 ... more

Embed: (wiki syntax)

« Back to documentation index

AtCommandRequest Class Reference

AtCommandRequest Class Reference

Represents an AT Command TX packet The command is used to configure the serially connected XBee radio. More...

#include <XBee.h>

Inherits XBeeRequest.

Inherited by RemoteAtCommandRequest.

Public Member Functions

virtual uint8_t getFrameData (uint16_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.
virtual uint16_t getFrameDataLength ()
 Returns the size of the api frame (not including frame id or api id or checksum).
void clearCommandValue ()
 Clears the optional commandValue and commandValueLength so that a query may be sent.
void setFrameId (uint8_t frameId)
 Sets the frame id.
uint8_t getFrameId ()
 Returns the frame id.
uint8_t getApiId ()
 Returns the API id.

Detailed Description

Represents an AT Command TX packet The command is used to configure the serially connected XBee radio.

Definition at line 903 of file XBee.h.


Member Function Documentation

void clearCommandValue (  )

Clears the optional commandValue and commandValueLength so that a query may be sent.

Definition at line 1283 of file XBee.cpp.

uint8_t getApiId (  ) [inherited]

Returns the API id.

Definition at line 961 of file XBee.cpp.

uint8_t getFrameData ( uint16_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.

Reimplemented in RemoteAtCommandRequest.

Definition at line 1272 of file XBee.cpp.

uint16_t getFrameDataLength (  ) [virtual]

Returns the size of the api frame (not including frame id or api id or checksum).

Implements XBeeRequest.

Reimplemented in RemoteAtCommandRequest.

Definition at line 1292 of file XBee.cpp.

uint8_t getFrameId (  ) [inherited]

Returns the frame id.

Definition at line 957 of file XBee.cpp.

void setFrameId ( uint8_t  frameId ) [inherited]

Sets the frame id.

Must be between 1 and 255 inclusive to get a TX status response.

Definition at line 953 of file XBee.cpp.