Marin Assaliyski / XBee_EA_LPC4088_QS

Dependents:   XBee_WiFi_EA_LPC4088

Fork of XBee by Suga koubou

Embed: (wiki syntax)

« Back to documentation index

RemoteAtCommandResponse Class Reference

RemoteAtCommandResponse Class Reference

Represents a Remote AT Command RX packet. More...

#include <XBee.h>

Inherits AtCommandResponse.

Public Member Functions

uint8_t * getCommand ()
 Returns an array containing the two character command.
uint8_t getStatus ()
 Returns the command status code.
uint8_t * getValue ()
 Returns an array containing the command value.
uint16_t getValueLength ()
 Returns the length of the command value array.
uint16_t getRemoteAddress16 ()
 Returns the 16-bit address of the remote radio.
XBeeAddress64getRemoteAddress64 ()
 Returns the 64-bit address of the remote radio.
bool isOk ()
 Returns true if command was successful.
uint8_t getApiId ()
 Returns Api Id of the response.
uint8_t getMsbLength ()
 Returns the MSB length of the packet.
uint8_t getLsbLength ()
 Returns the LSB length of the packet.
uint8_t getChecksum ()
 Returns the packet checksum.
uint16_t getFrameDataLength ()
 Returns the length of the frame data: all bytes after the api id, and prior to the checksum Note up to release 0.1.2, this was incorrectly including the checksum in the length.
uint8_t * getFrameData ()
 Returns the buffer that contains the response.
uint16_t getPacketLength ()
 Returns the length of the packet.
void reset ()
 Resets the response to default values.
void init ()
 Initializes the response.
void getZBTxStatusResponse (XBeeResponse &response)
 Call with instance of ZBTxStatusResponse class only if getApiId() == ZB_TX_STATUS_RESPONSE to populate response.
void getZBRxResponse (XBeeResponse &response)
 Call with instance of ZBRxResponse class only if getApiId() == ZB_RX_RESPONSE to populate response.
void getZBRxIoSampleResponse (XBeeResponse &response)
 Call with instance of ZBRxIoSampleResponse class only if getApiId() == ZB_IO_SAMPLE_RESPONSE to populate response.
void getTxStatusResponse (XBeeResponse &response)
 Call with instance of TxStatusResponse only if getApiId() == TX_STATUS_RESPONSE.
void getRx16Response (XBeeResponse &response)
 Call with instance of Rx16Response only if getApiId() == RX_16_RESPONSE.
void getRx64Response (XBeeResponse &response)
 Call with instance of Rx64Response only if getApiId() == RX_64_RESPONSE.
void getRx16IoSampleResponse (XBeeResponse &response)
 Call with instance of Rx16IoSampleResponse only if getApiId() == RX_16_IO_RESPONSE.
void getRx64IoSampleResponse (XBeeResponse &response)
 Call with instance of Rx64IoSampleResponse only if getApiId() == RX_64_IO_RESPONSE.
void getAtCommandResponse (XBeeResponse &responses)
 Call with instance of AtCommandResponse only if getApiId() == AT_COMMAND_RESPONSE.
void getRemoteAtCommandResponse (XBeeResponse &response)
 Call with instance of RemoteAtCommandResponse only if getApiId() == REMOTE_AT_COMMAND_RESPONSE.
void getModemStatusResponse (XBeeResponse &response)
 Call with instance of ModemStatusResponse only if getApiId() == MODEM_STATUS_RESPONSE.
bool isAvailable ()
 Returns true if the response has been successfully parsed and is complete and ready for use.
bool isError ()
 Returns true if the response contains errors.
uint8_t getErrorCode ()
 Returns an error code, or zero, if successful.

Detailed Description

Represents a Remote AT Command RX packet.

Definition at line 576 of file XBee.h.


Member Function Documentation

uint8_t getApiId (  ) [inherited]

Returns Api Id of the response.

Definition at line 42 of file XBee.cpp.

void getAtCommandResponse ( XBeeResponse responses ) [inherited]

Call with instance of AtCommandResponse only if getApiId() == AT_COMMAND_RESPONSE.

Definition at line 629 of file XBee.cpp.

uint8_t getChecksum (  ) [inherited]

Returns the packet checksum.

Definition at line 66 of file XBee.cpp.

uint8_t * getCommand (  )

Returns an array containing the two character command.

Reimplemented from AtCommandResponse.

Definition at line 513 of file XBee.cpp.

uint8_t getErrorCode (  ) [inherited]

Returns an error code, or zero, if successful.

Error codes include: CHECKSUM_FAILURE, PACKET_EXCEEDS_BYTE_ARRAY_LENGTH, UNEXPECTED_START_BYTE

Definition at line 94 of file XBee.cpp.

uint8_t * getFrameData (  ) [inherited]

Returns the buffer that contains the response.

Starts with byte that follows API ID and includes all bytes prior to the checksum Length is specified by getFrameDataLength() Note: Unlike Digi's definition of the frame data, this does not start with the API ID.. The reason for this is all responses include an API ID, whereas my frame data includes only the API specific data.

Definition at line 643 of file XBee.cpp.

uint16_t getFrameDataLength (  ) [inherited]

Returns the length of the frame data: all bytes after the api id, and prior to the checksum Note up to release 0.1.2, this was incorrectly including the checksum in the length.

Definition at line 74 of file XBee.cpp.

uint8_t getLsbLength (  ) [inherited]

Returns the LSB length of the packet.

Definition at line 58 of file XBee.cpp.

void getModemStatusResponse ( XBeeResponse response ) [inherited]

Call with instance of ModemStatusResponse only if getApiId() == MODEM_STATUS_RESPONSE.

Definition at line 590 of file XBee.cpp.

uint8_t getMsbLength (  ) [inherited]

Returns the MSB length of the packet.

Definition at line 50 of file XBee.cpp.

uint16_t getPacketLength (  ) [inherited]

Returns the length of the packet.

Definition at line 639 of file XBee.cpp.

uint16_t getRemoteAddress16 (  )

Returns the 16-bit address of the remote radio.

Definition at line 539 of file XBee.cpp.

XBeeAddress64 & getRemoteAddress64 (  )

Returns the 64-bit address of the remote radio.

Definition at line 543 of file XBee.cpp.

void getRemoteAtCommandResponse ( XBeeResponse response ) [inherited]

Call with instance of RemoteAtCommandResponse only if getApiId() == REMOTE_AT_COMMAND_RESPONSE.

Definition at line 547 of file XBee.cpp.

void getRx16IoSampleResponse ( XBeeResponse response ) [inherited]

Call with instance of Rx16IoSampleResponse only if getApiId() == RX_16_IO_RESPONSE.

Definition at line 401 of file XBee.cpp.

void getRx16Response ( XBeeResponse response ) [inherited]

Call with instance of Rx16Response only if getApiId() == RX_16_RESPONSE.

Definition at line 480 of file XBee.cpp.

void getRx64IoSampleResponse ( XBeeResponse response ) [inherited]

Call with instance of Rx64IoSampleResponse only if getApiId() == RX_64_IO_RESPONSE.

Definition at line 421 of file XBee.cpp.

void getRx64Response ( XBeeResponse response ) [inherited]

Call with instance of Rx64Response only if getApiId() == RX_64_RESPONSE.

Definition at line 495 of file XBee.cpp.

uint8_t getStatus (  )

Returns the command status code.

Zero represents a successful command

Reimplemented from AtCommandResponse.

Definition at line 517 of file XBee.cpp.

void getTxStatusResponse ( XBeeResponse response ) [inherited]

Call with instance of TxStatusResponse only if getApiId() == TX_STATUS_RESPONSE.

Definition at line 443 of file XBee.cpp.

uint8_t * getValue (  )

Returns an array containing the command value.

This is only applicable to query commands.

Reimplemented from AtCommandResponse.

Definition at line 530 of file XBee.cpp.

uint16_t getValueLength (  )

Returns the length of the command value array.

Reimplemented from AtCommandResponse.

Definition at line 526 of file XBee.cpp.

void getZBRxIoSampleResponse ( XBeeResponse response ) [inherited]

Call with instance of ZBRxIoSampleResponse class only if getApiId() == ZB_IO_SAMPLE_RESPONSE to populate response.

Definition at line 264 of file XBee.cpp.

void getZBRxResponse ( XBeeResponse response ) [inherited]

Call with instance of ZBRxResponse class only if getApiId() == ZB_RX_RESPONSE to populate response.

Definition at line 173 of file XBee.cpp.

void getZBTxStatusResponse ( XBeeResponse response ) [inherited]

Call with instance of ZBTxStatusResponse class only if getApiId() == ZB_TX_STATUS_RESPONSE to populate response.

Definition at line 139 of file XBee.cpp.

void init (  ) [inherited]

Initializes the response.

Definition at line 651 of file XBee.cpp.

bool isAvailable (  ) [inherited]

Returns true if the response has been successfully parsed and is complete and ready for use.

Definition at line 82 of file XBee.cpp.

bool isError (  ) [inherited]

Returns true if the response contains errors.

Definition at line 90 of file XBee.cpp.

bool isOk (  )

Returns true if command was successful.

Reimplemented from AtCommandResponse.

Definition at line 521 of file XBee.cpp.

void reset (  ) [inherited]

Resets the response to default values.

Definition at line 657 of file XBee.cpp.