For getting RSSI value from xbee

Dependents:   XBeeGetRSSISampleProgram Xbee_s2_RX_versao2

Committer:
ATKINZ117
Date:
Sun Aug 25 14:08:44 2013 +0000
Revision:
7:588a7745cc0e
Parent:
6:2e725705db90
Child:
9:eb8838ce9d65
improved the source code readability.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ATKINZ117 0:d1ff6ea68ab2 1 #ifndef XBEEGETRSSI20130718
ATKINZ117 0:d1ff6ea68ab2 2 #define XBEEGETRSSI20130718
ATKINZ117 0:d1ff6ea68ab2 3
ATKINZ117 0:d1ff6ea68ab2 4 #include "mbed.h"
ATKINZ117 0:d1ff6ea68ab2 5
ATKINZ117 0:d1ff6ea68ab2 6 class XBeeGetRssi{
ATKINZ117 0:d1ff6ea68ab2 7 public:
ATKINZ117 0:d1ff6ea68ab2 8 XBeeGetRssi(PinName tx,PinName rx); //select the oneshot mode or repeat mode.
ATKINZ117 6:2e725705db90 9 char getRssi(int n); //method for getting rssi.
ATKINZ117 0:d1ff6ea68ab2 10
ATKINZ117 0:d1ff6ea68ab2 11 private:
ATKINZ117 0:d1ff6ea68ab2 12 PinName _tx;
ATKINZ117 0:d1ff6ea68ab2 13 PinName _rx;
ATKINZ117 7:588a7745cc0e 14 char _rssi[256]; //arrangement for containing the rssi value.
ATKINZ117 0:d1ff6ea68ab2 15 };
ATKINZ117 0:d1ff6ea68ab2 16
ATKINZ117 0:d1ff6ea68ab2 17 #endif