Analog comms with xbee. Program for the Coordinator.

Dependencies:   C12832_lcd mbed xbeeLibDannelly

Fork of Xbee_Hello_World_B by Tristan Hughes

main.cpp

Committer:
tristanjph
Date:
2012-08-31
Revision:
0:122702c9168a
Child:
1:4ce1378831fe

File content as of revision 0:122702c9168a:

#include "mbed.h"
#include "xbee.h"

xbee xbee1(p9,p10,p11); //Initalise xbee_lib

int main()
{
    char read_data[202]; //Xbee buffer size is 202 bytes

    while(1) {
        xbee1.RecieveData(read_data,0); //Read data from the XBee
        xbee1.SendData(read_data); //Send data to XBee
    }
}