Code APP3

Dependencies:   mbed EthernetInterface WebSocketClient mbed-rtos BufferedSerial

Fork of APP3_Lab by Jean-Philippe Fournier

Revision:
17:8abdbfa6019c
Parent:
16:0a5f3c449c95
Child:
19:75e600a40741
--- a/main.cpp	Sun Oct 01 20:31:58 2017 +0000
+++ b/main.cpp	Mon Oct 02 15:01:34 2017 +0000
@@ -1,10 +1,12 @@
 #include "mbed.h"
 
+#include "rtos.h"
+
 #include "xbee.h"
 #include "parser.h"
 #include "sensors.h"
 
-#define IS_COORDINATOR 0
+#define IS_COORDINATOR 1
 
 #define PAN_ID 0xC0FFEE
 
@@ -73,7 +75,7 @@
             }
             pc.printf(" :::end\n\r");
             
-            remote_at_command_query('N', 'D', 0x02);
+            //remote_at_command_query('N', 'D', 0x02);
         }
         
         set_remote_xbee_dio4(toggle_led);