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:
27:259aaa249619
Parent:
25:36c6a5db50ed
Child:
28:cd25d46cb141
--- a/emmaCode.h	Sat Jul 25 11:59:35 2015 +0000
+++ b/emmaCode.h	Wed Aug 05 10:07:18 2015 +0000
@@ -8,6 +8,7 @@
 #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
@@ -26,6 +27,8 @@
 #define BASE_ADDR 0x1FFF7A10
 #endif
 
+#define MAXTOKEN                64
+
 //mode
 #define MODE_WIFI_CONFIG        0x00    //wifi config
 #define MODE_SETTINGS           0x01    //settings