For getting RSSI value from xbee

Dependents:   XBeeGetRSSISampleProgram Xbee_s2_RX_versao2

XBeeGetRssi.h

Committer:
ATKINZ117
Date:
2013-08-18
Revision:
3:602329ee6a01
Parent:
2:befae843036e

File content as of revision 3:602329ee6a01:

#ifndef XBEEGETRSSI20130718
#define XBEEGETRSSI20130718

#include "mbed.h"

class XBeeGetRssi{
    public:
        XBeeGetRssi(PinName tx,PinName rx); //select the oneshot mode or repeat mode.
        char* get(); //method for getting rssi.
        
    private:
        PinName _tx;
        PinName _rx;
        char _rssi[]; //pointer for containing the rssi value.
        //char _xbee_message[]; //for the xbee message.
        void _rssiGetter(); //for waiting messages from xbee
};

#endif