Code APP3

Dependencies:   mbed EthernetInterface WebSocketClient mbed-rtos BufferedSerial

Fork of APP3_Lab by Jean-Philippe Fournier

Revision:
9:3631d3685cfa
Parent:
8:5955af1ee445
Child:
11:ecf5776b950a
--- a/main.cpp	Sat Sep 30 20:07:23 2017 +0000
+++ b/main.cpp	Sat Sep 30 20:17:57 2017 +0000
@@ -2,8 +2,9 @@
 
 #include "xbee.h"
 #include "parser.h"
+#include "sensors.h"
 
-#define IS_COORDINATOR 1
+#define IS_COORDINATOR 0
 
 #define PAN_ID 0xC0FFEE
 
@@ -22,9 +23,11 @@
     char hello_world[12] = "Hello world";
 
     frame_t* current_frame;
+
 #if IS_COORDINATOR
 
 #else
+    Test();
     DECLARE_ADDR64_COORD
     DECLARE_ADDR16_UNKNOWN_OR_BCAST
     transmit_request(hello_world, 11, 0, USE_ADDR64_COORD, USE_ADDR16_UNKNOWN_OR_BCAST);