IoT_watering project - supervisor

Dependencies:   mbed-rtos mbed ssWi

Revision:
2:69d2d4c76f02
Parent:
1:dcfe7e79a45c
Child:
3:e49dd7bf7f1c
--- a/config.h	Thu Jan 19 23:31:18 2017 +0000
+++ b/config.h	Mon Jan 23 20:36:42 2017 +0000
@@ -4,7 +4,7 @@
 // TIME
 #define TIMEOUT_READ                10.0
 #define INTERVAL_SAMPLING           40.0
-#define INTERVAL_SYNC               6.0
+#define INTERVAL_SYNC               5.0
 #define INTERVAL_1_SECOND           1.0
 #define INTERVAL_60_SECONDS         60
 
@@ -39,6 +39,14 @@
 #define FILE_WTR                    "/local/WTR.txt"
 #define FILE_BSY                    "/local/BSY.txt"
 
+// NETWORK
+#define PAN_ID                      102
+#define CHANNEL_ID                  14
+#define XBEE_TX_PER_SECOND          3
+#define XBEE_RX_PER_SECOND          10
+#define XBEE_PIN_TX                 p9
+#define XBEE_PIN_RX                 p10
+
 struct watering_unit_node_t {
     int address;
     int watering_wait;