![](/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:
- 0:3fdf715b8445
- Child:
- 1:2bddd5230b7e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Aug 16 06:38:32 2013 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" +#include "XBeeGetRssi.h" + +XBeeGetRssi RSSI(p9,p10); //tx,rx +Serial pc(USBTX,USBRX); +//Serial MyXbee(p13,p14); + +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."); + } +}