This is a sample program which shows how to use my library XBeeGetRssi.
Dependencies: XBeeGetRssi mbed
Diff: main.cpp
- Revision:
- 1:2bddd5230b7e
- Parent:
- 0:3fdf715b8445
- Child:
- 2:eb9a9348fc24
--- a/main.cpp Fri Aug 16 06:38:32 2013 +0000 +++ b/main.cpp Sat Aug 24 07:08:59 2013 +0000 @@ -7,10 +7,14 @@ int main(){ while(1){ - wait(0.3); - pc.printf("-%sdBm",RSSI.get()); - pc.printf("\r\n"); - wait(0.6); - pc.printf("This is the end of main."); + wait(1.0); +// pc.printf("RSSI: - %s dBm \r\n",RSSI.get()); + pc.printf("RSSI: - "); + for(int i=0;i<10;i++){ + pc.printf("%c",RSSI.get(i)); + } + pc.printf("dBm \r\n"); +// pc.printf("\r\n"); + pc.printf("This is the end of main.\r\n"); } }