able to subscribe for >10hrs and still running

Dependencies:   ADE7758_v1 Crypto DHT11 MQTT MbedJSONValue SDFileSystem SPI_TFT_ILI9341 SWSPI SetRTC TFT_fonts Touch W5500Interface mbed-rtos mbed-src tuanpm

Fork of PB_emma_controller_mbed_src by Emma

Revision:
21:33bd8b82560f
Parent:
14:8287f0f5d987
Child:
25:36c6a5db50ed
--- a/emmaCode.h	Wed Jul 22 13:17:57 2015 +0000
+++ b/emmaCode.h	Thu Jul 23 04:22:55 2015 +0000
@@ -16,6 +16,7 @@
 #include "Touch.h"              //touch
 #include "Arial12x12.h"         //font
 #include "SetRTC.h"             //rtc
+#include "DHT11.h"              //dht11
 #include <string>
 
 //platform
@@ -84,7 +85,7 @@
 
 /*start energy related*/
 void energyThread(void const*);
-void checkVoltagePower();
+void checkVoltagePower(void);
 /*end energy related*/
 
 /*start wifi mqtt*/