For getting RSSI value from xbee
Dependents: XBeeGetRSSISampleProgram Xbee_s2_RX_versao2
Diff: XBeeGetRssi.h
- Revision:
- 2:befae843036e
- Parent:
- 0:d1ff6ea68ab2
- Child:
- 3:602329ee6a01
- Child:
- 4:16396d9ec459
diff -r 8cb27d9eec8e -r befae843036e XBeeGetRssi.h --- a/XBeeGetRssi.h Fri Aug 16 06:37:46 2013 +0000 +++ b/XBeeGetRssi.h Sat Aug 17 03:51:52 2013 +0000 @@ -6,13 +6,13 @@ class XBeeGetRssi{ public: XBeeGetRssi(PinName tx,PinName rx); //select the oneshot mode or repeat mode. - char* get(); //method for getting rssi. + int 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. + int _rssi; //pointer for containing the rssi value. + //char _xbee_message[]; //for the xbee message. void _rssiGetter(); //for waiting messages from xbee };