For getting RSSI value from xbee

Dependents:   XBeeGetRSSISampleProgram Xbee_s2_RX_versao2

XBeeGetRssi.h

Committer:
ATKINZ117
Date:
2013-08-24
Revision:
4:16396d9ec459
Parent:
2:befae843036e
Child:
6:2e725705db90

File content as of revision 4:16396d9ec459:

#ifndef XBEEGETRSSI20130718
#define XBEEGETRSSI20130718

#include "mbed.h"

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

#endif