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.
Diff: main.cpp
- Revision:
- 5:502371e99bdb
- Parent:
- 4:989ea19b8fd2
- Child:
- 6:0d434f4c83bd
--- a/main.cpp Thu Oct 11 06:49:40 2012 +0000
+++ b/main.cpp Wed Mar 06 09:11:18 2013 +0000
@@ -44,19 +44,16 @@
xbee.setDstAddress(XBeeBroadcastAddress());
XBeeAddress addr2 = xbee.getDstAddress();
printf("XBEE: dts addr: %s,%s\n\r", addr2.getHighAddr().c_str(), addr2.getLowAddr().c_str());
-// printf("XBEE: channel: %d\n\r", xbee.getChannel());
-// printf("XBEE: pan id: %d\n\r", xbee.getPanID());
+ printf("XBEE: channel: %d\n\r", xbee.getChannel());
+ printf("XBEE: pan id: %d\n\r", xbee.getPanID());
//wireless network
xbee.init(1, 2);
srand(time(0));
-
-
printf("\n\r************* READ *************\n\r");
-
//tasks
task_array[0] = new Task(10, 3, ((double)rand()/RAND_MAX)*20);
task_array[1] = new Task(15, 5, ((double)rand()/RAND_MAX)*30);