Version of niMQTT library which includes separate process for pings and ability to publish retained messages.

Dependencies:   EthernetInterface mbed-rtos mbed

Fork of niMQTT by Juan Carlos Jimenez

Revision:
9:3be69efa4402
Parent:
8:438958bb9df3
Child:
10:28cfb74b0584
--- a/niMQTT.h	Tue Aug 13 13:36:05 2013 +0000
+++ b/niMQTT.h	Mon Mar 03 14:53:08 2014 +0000
@@ -111,9 +111,12 @@
         int pingresp();
         int disconnect();
 
-        static void thread_starter(void const *p);
-        void thread_worker();
-        Thread thread;
+        static void ping_thread_starter(void const *p);
+        static void recv_thread_starter(void const *p);
+        void ping_thread_worker();
+        void recv_thread_worker();
+        Thread ping_thread;
+        Thread recv_thread;
 
         void publish_received();
         virtual void call_callback(const char *topic, const char *message);