This is a sample program which shows how to use my library XBeeGetRssi.

Dependencies:   XBeeGetRssi mbed

Files at this revision

API Documentation at this revision

Comitter:
ATKINZ117
Date:
Sat Aug 24 07:08:59 2013 +0000
Parent:
0:3fdf715b8445
Child:
2:eb9a9348fc24
Commit message:
mostly same as the previous version. comitted for publishing.

Changed in this revision

XBeeGetRssi.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/XBeeGetRssi.lib	Fri Aug 16 06:38:32 2013 +0000
+++ b/XBeeGetRssi.lib	Sat Aug 24 07:08:59 2013 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/ATKINZ117/code/XBeeGetRssi/#8cb27d9eec8e
+http://mbed.org/users/ATKINZ117/code/XBeeGetRssi/#790675fae748
--- 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");
     }
 }