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:
28:cd25d46cb141
Parent:
27:259aaa249619
--- a/emmaCode.h	Wed Aug 05 10:07:18 2015 +0000
+++ b/emmaCode.h	Fri Aug 07 02:56:53 2015 +0000
@@ -8,7 +8,6 @@
 #include "MQTTClient.h"         //eth mqtt
 #include "MQTTEthernet.h"       //eth mqtt
 #include "MbedJSONValue.h"      //json
-#include "jsmn.h"              //json alternative
 #include "SDFileSystem.h"       //sd card
 #include "Crypto.h"             //hash calculation
 #include "cmsis_os.h"           //threads
@@ -102,6 +101,7 @@
 /*end wifi rest*/
 
 /*start eth mqtt*/
+int publish(MQTT::Client<MQTTEthernet, Countdown, MQTT_MAX_PACKET_SIZE>* client, MQTTEthernet* ipstack);
 void ethMQTTMessageArrived(MQTT::MessageData& md);
 int ethMQTTConnect(MQTT::Client<MQTTEthernet, Countdown, MQTT_MAX_PACKET_SIZE>* client, MQTTEthernet* ipstack);
 void ethMQTTAttemptConnect(MQTT::Client<MQTTEthernet, Countdown, MQTT_MAX_PACKET_SIZE>* client, MQTTEthernet* ipstack);