For getting RSSI value from xbee

Dependents:   XBeeGetRSSISampleProgram Xbee_s2_RX_versao2

Revision:
0:d1ff6ea68ab2
Child:
2:befae843036e
diff -r 000000000000 -r d1ff6ea68ab2 XBeeGetRssi.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/XBeeGetRssi.h	Tue Aug 06 14:29:39 2013 +0000
@@ -0,0 +1,19 @@
+#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
\ No newline at end of file