For getting RSSI value from xbee
Dependents: XBeeGetRSSISampleProgram Xbee_s2_RX_versao2
XBeeGetRssi.h@9:eb8838ce9d65, 2013-08-27 (annotated)
- Committer:
- ATKINZ117
- Date:
- Tue Aug 27 10:44:10 2013 +0000
- Revision:
- 9:eb8838ce9d65
- Parent:
- 7:588a7745cc0e
- Child:
- 12:7ec2a4147b44
this is the best version now.
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 | 9:eb8838ce9d65 | 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 | 9:eb8838ce9d65 | 15 | char* _rssi_address; |
ATKINZ117 | 0:d1ff6ea68ab2 | 16 | }; |
ATKINZ117 | 0:d1ff6ea68ab2 | 17 | |
ATKINZ117 | 0:d1ff6ea68ab2 | 18 | #endif |