Mathieu Moneyron / Mbed 2 deprecated projetS1

Dependencies:   HP206C mbed HMC5883L DHT DS1820

Revision:
45:60f602ecd59b
Parent:
33:2a6476c33e74
Child:
46:40b6bbf6167e
diff -r 46310c0f1662 -r 60f602ecd59b main.cpp
--- a/main.cpp	Mon Oct 01 09:45:34 2018 +0000
+++ b/main.cpp	Mon Oct 01 10:02:53 2018 +0000
@@ -1,6 +1,8 @@
 #include "mbed.h"
+#include "config.h"
+#include "communication.h"
 
-DigitalOut myled(LED1);
+Serial wisol(SERIAL_PORT);
 
 int main() {
     while(1) {
@@ -14,6 +16,6 @@
         m = genMessage(T_air, H_air, T_sol, H_sol, Pressure, Mag)
         sendMessage(m)
         */
-        wait(60*15);
+        wait(WAIT_TIME);
     }
 }