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:
12:ae25ab913163
Parent:
11:d508e0b7ed4d
--- a/niMQTT.cpp	Thu Jul 03 18:02:08 2014 +0000
+++ b/niMQTT.cpp	Thu Jul 03 18:04:36 2014 +0000
@@ -157,7 +157,7 @@
     return (resp[2] == 0);
 }
 
-int niMQTT::pub(char *topic, char *message, bool retain=false) {
+int niMQTT::pub(char *topic, char *message, bool retain) {
     if (debug) printf("*pub\r\n");
     int topic_length = strlen(topic);
     int message_length = strlen(message);