Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Aigamozu_Robot_ver3_1 Aigamozu_Robot_ver3_2 Aigamozu_Robot_ver3_3 Aigamozu_Robot_ver3_4 ... more
Fork of XBee by
XBeeRequest Class Reference
Super class of all XBee requests (TX packets) Users should never create an instance of this class; instead use an subclass of this class It is recommended to reuse Subclasses of the class to conserve memory This class allocates a buffer to. More...
#include <XBee.h>
Inherited by AtCommandRequest, and PayloadRequest.
Public Member Functions | |
XBeeRequest (uint8_t apiId, uint8_t frameId) | |
Constructor TODO make protected. | |
void | setFrameId (uint8_t frameId) |
Sets the frame id. | |
uint8_t | getFrameId () |
Returns the frame id. | |
uint8_t | getApiId () |
Returns the API id. | |
virtual uint8_t | getFrameData (uint16_t pos)=0 |
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 ()=0 |
Returns the size of the api frame (not including frame id or api id or checksum). |
Detailed Description
Super class of all XBee requests (TX packets) Users should never create an instance of this class; instead use an subclass of this class It is recommended to reuse Subclasses of the class to conserve memory
This class allocates a buffer to.
Definition at line 622 of file XBee.h.
Constructor & Destructor Documentation
XBeeRequest | ( | uint8_t | apiId, |
uint8_t | frameId | ||
) |
Member Function Documentation
virtual uint8_t getFrameData | ( | uint16_t | pos ) | [pure 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.
Implemented in Tx16Request, Tx64Request, ZBTxRequest, AtCommandRequest, RemoteAtCommandRequest, and IPv4TransmitRequest.
virtual uint16_t getFrameDataLength | ( | ) | [pure virtual] |
Returns the size of the api frame (not including frame id or api id or checksum).
Implemented in Tx16Request, Tx64Request, ZBTxRequest, AtCommandRequest, RemoteAtCommandRequest, and IPv4TransmitRequest.
Generated on Tue Jul 12 2022 19:39:10 by
