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.

Dependencies:   BufferedArray

Dependents:   MBEDminiproject

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers RemoteCommandIndicator.h Source File

RemoteCommandIndicator.h

00001 #ifndef UK_AC_HERTS_SMARTLAB_XBEE_RemoteCommandIndicator
00002 #define UK_AC_HERTS_SMARTLAB_XBEE_RemoteCommandIndicator
00003 
00004 #include "Address.h"
00005 #include "RxBase.h"
00006 #include "ICommandResponse.h"
00007 
00008 class RemoteCommandIndicator : public ICommandResponse, public RxBase
00009 {
00010 public:
00011 
00012     RemoteCommandIndicator(APIFrame * frame);
00013 
00014     virtual int getFrameID();
00015     
00016     virtual unsigned  char * getRequestCommand();
00017 
00018     /**
00019     *
00020     * @returns
00021     *    OK = 0x00,
00022     *    ERROR = 0x01,
00023     *    INVALID_COMMAND = 0x02,
00024     *    INVALID_Parameter = 0x03,
00025     *    TRANSMISSION_FAILED = 0x04,
00026     */
00027     virtual int getCommandStatus();
00028 
00029     Address getRemoteDevice();
00030 
00031     virtual unsigned  char * getParameter();
00032 
00033     virtual unsigned char getParameter(int index);
00034 
00035     virtual int getParameterLength();
00036 
00037     virtual int getParameterOffset();
00038     
00039     bool convert(APIFrame * frame);
00040 };
00041 
00042 #endif