For getting RSSI value from xbee
Dependents: XBeeGetRSSISampleProgram Xbee_s2_RX_versao2
Diff: XBeeGetRssi.h
- Revision:
- 3:602329ee6a01
- Parent:
- 2:befae843036e
diff -r befae843036e -r 602329ee6a01 XBeeGetRssi.h --- a/XBeeGetRssi.h Sat Aug 17 03:51:52 2013 +0000 +++ b/XBeeGetRssi.h Sun Aug 18 08:42:24 2013 +0000 @@ -6,12 +6,12 @@ class XBeeGetRssi{ public: XBeeGetRssi(PinName tx,PinName rx); //select the oneshot mode or repeat mode. - int get(); //method for getting rssi. + char* get(); //method for getting rssi. private: PinName _tx; PinName _rx; - int _rssi; //pointer for containing the rssi value. + char _rssi[]; //pointer for containing the rssi value. //char _xbee_message[]; //for the xbee message. void _rssiGetter(); //for waiting messages from xbee };