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

Dependencies:   XBeeGetRssi mbed

main.cpp

Committer:
ATKINZ117
Date:
2013-08-16
Revision:
0:3fdf715b8445
Child:
1:2bddd5230b7e

File content as of revision 0:3fdf715b8445:

#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.");
    }
}