XBee and XBee-PRO ZigBee RF modules provide cost-effective wireless connectivity to electronic devices. They are interoperable with other ZigBee PRO feature set devices, including devices from other vendors.
Diff: Request/TxBase.h
- Revision:
- 0:837e6c48e90d
- Child:
- 6:5f31ddc17239
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Request/TxBase.h Thu Oct 22 12:28:26 2015 +0000 @@ -0,0 +1,33 @@ +#ifndef UK_AC_HERTS_SMARTLAB_XBEE_TxBase +#define UK_AC_HERTS_SMARTLAB_XBEE_TxBase + +#include "APIFrame.h" + +#include "Address.h" +#include "OptionsBase.h" +#include "TransmitOptions.h" +#include "RemoteCommandOptions.h" + +class TxBase : public APIFrame +{ + +public: + + /// <summary> + /// + /// </summary> + /// <param name="Length">the length of payload not include Frame Type, Frame ID and CheckSum</param> + /// <param name="identifier">Frame Type</param> + /// <param name="frameID">Frame ID</param> + TxBase(int length, char identifier, char frameID); + + /// <summary> + /// this does not affect the position, will always write to position 1 + /// </summary> + /// <param name="identifier"></param> + void setFrameID(char frameID); + + char getFrameID(); +}; + +#endif \ No newline at end of file