For getting RSSI value from xbee
Dependents: XBeeGetRSSISampleProgram Xbee_s2_RX_versao2
XBeeGetRssi.h@3:602329ee6a01, 2013-08-18 (annotated)
- Committer:
- ATKINZ117
- Date:
- Sun Aug 18 08:42:24 2013 +0000
- Revision:
- 3:602329ee6a01
- Parent:
- 2:befae843036e
latest version at 0818.but couldn't break out from the while loop
Who changed what in which revision?
User | Revision | Line number | New 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 | 3:602329ee6a01 | 9 | char* get(); //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 | 3:602329ee6a01 | 14 | char _rssi[]; //pointer for containing the rssi value. |
ATKINZ117 | 2:befae843036e | 15 | //char _xbee_message[]; //for the xbee message. |
ATKINZ117 | 0:d1ff6ea68ab2 | 16 | void _rssiGetter(); //for waiting messages from xbee |
ATKINZ117 | 0:d1ff6ea68ab2 | 17 | }; |
ATKINZ117 | 0:d1ff6ea68ab2 | 18 | |
ATKINZ117 | 0:d1ff6ea68ab2 | 19 | #endif |