Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 0:122702c9168a, committed 2012-08-31
- Comitter:
- tristanjph
- Date:
- Fri Aug 31 14:47:12 2012 +0000
- Commit message:
- initial commit
Changed in this revision
diff -r 000000000000 -r 122702c9168a main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Aug 31 14:47:12 2012 +0000 @@ -0,0 +1,14 @@ +#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 + } +} \ No newline at end of file
diff -r 000000000000 -r 122702c9168a mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Aug 31 14:47:12 2012 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/cd19af002ccc \ No newline at end of file
diff -r 000000000000 -r 122702c9168a xbee_lib.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xbee_lib.lib Fri Aug 31 14:47:12 2012 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/tristanjph/code/xbee_lib/#ede20c047d8b