![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
This is a sample program which shows how to use my library XBeeGetRssi.
Dependencies: XBeeGetRssi mbed
Diff: main.cpp
- Revision:
- 4:f38df169d56f
- Parent:
- 3:bc4f426b4f98
- Child:
- 5:85070c3bfc6a
diff -r bc4f426b4f98 -r f38df169d56f main.cpp --- a/main.cpp Tue Aug 27 10:44:30 2013 +0000 +++ b/main.cpp Wed Aug 28 08:57:45 2013 +0000 @@ -9,25 +9,9 @@ int main(){ while(1){ - -// pc.printf("RSSI: - %s dBm \r\n",RSSI.get()); ptr=RSSI.getRssi(); - pc.printf("RSSI: - "); - /*for(int i=1;i<4;i++){ - pc.printf("%c",RSSI.getRssi(i)); - }*/ - //pc.printf("%c",RSSI.getRssi(0)); - //pc.printf("%c",RSSI.getRssi(1)); - //pc.printf("%c",RSSI.getRssi(2)); - //pc.printf("%c",RSSI.getRssi(3)); - //pc.printf("%c",RSSI.getRssi(4)); - //pc.printf("%c",RSSI.getRssi(5)); - //pc.printf("%c",RSSI.getRssi(6)); - pc.printf("%c%c",*ptr,*(ptr+1)); - //pc.printf("%c",RSSI.getRssi()); - pc.printf("dBm \r\n"); -// pc.printf("\r\n"); - pc.printf("This is the end of main.\r\n"); + pc.printf("RSSI:-%c%cdBm\r\n",*ptr,*(ptr+1)); + } }