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

Indicator/ICommandResponse.h

Committer:
yangcq88517
Date:
2015-11-14
Revision:
6:5f31ddc17239
Parent:
0:837e6c48e90d

File content as of revision 6:5f31ddc17239:

#ifndef UK_AC_HERTS_SMARTLAB_XBEE_ICommandResponse
#define UK_AC_HERTS_SMARTLAB_XBEE_ICommandResponse

class ICommandResponse
{
public:
    virtual int getFrameID() = 0;

    virtual unsigned char * getRequestCommand() = 0;

    /**
    *
    * @returns
    *    OK = 0x00,
    *    ERROR = 0x01,
    *    INVALID_COMMAND = 0x02,
    *    INVALID_Parameter = 0x03,
    *    TRANSMISSION_FAILED = 0x04,
    */
    virtual int getCommandStatus() = 0;

    virtual unsigned  char * getParameter() = 0;

    virtual unsigned char getParameter(int index) = 0;

    virtual int getParameterLength() = 0;

    virtual int getParameterOffset() = 0;
};

#endif