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/RemoteATCommandRequest.h
- Revision:
- 0:837e6c48e90d
- Child:
- 6:5f31ddc17239
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Request/RemoteATCommandRequest.h Thu Oct 22 12:28:26 2015 +0000 @@ -0,0 +1,39 @@ +#ifndef UK_AC_HERTS_SMARTLAB_XBEE_RemoteATCommandRequest +#define UK_AC_HERTS_SMARTLAB_XBEE_RemoteATCommandRequest + +#include "TxBase.h" +#include "ICommandRequest.h" + +class RemoteATCommandRequest : public TxBase, public ICommandRequest +{ + +public: + //0x17 + //FrameID; + //RemoteDevice + //Remote Command Options + //AT_Command + //Parameter_Value + + /// <summary> + /// + /// </summary> + /// <param name="FrameID"></param> + /// <param name="RemoteDevice"></param> + /// <param name="options">RemoteCommandOptions</param> + /// <param name="AT_Command"></param> + /// <param name="Parameter_Value">this can be null</param> + RemoteATCommandRequest(char frameID, Address * remoteAddress, const char * command, OptionsBase * transmitOptions, const char * parameter=NULL, int parameterOffset=0, int parameterLength=0); + + void setTransmitOptions(OptionsBase * transmitOptions); + + virtual void setAppleChanges(bool appleChanges); + + virtual void setCommand(const char * command); + + virtual void setParameter(const char * parameter, int offset, int length); + + void setRemoteAddress(Address * remoteAddress); +}; + +#endif \ No newline at end of file