cc

Dependencies:   MQTTPacket FP

Revision:
42:f5beda831651
Parent:
41:b7e86fa6dbb8
Child:
43:21da1f744243
diff -r b7e86fa6dbb8 -r f5beda831651 MQTTClient.h
--- a/MQTTClient.h	Fri Aug 15 10:23:56 2014 +0000
+++ b/MQTTClient.h	Thu Aug 21 12:40:43 2014 +0000
@@ -123,6 +123,12 @@
         defaultMessageHandler.attach(mh);
     }
     
+    void setLogHandler()
+    {
+        logHandler.attach(lh);
+    }
+
+    
     /** MQTT Connect - send an MQTT connect packet down the network and wait for a Connack
      *  The nework object must be connected to the network endpoint before calling this 
      *  @param options - connect options
@@ -241,6 +247,8 @@
     {
         ping_timer.countdown(this->keepAliveInterval); // record the fact that we have successfully sent the packet    
         rc = SUCCESS;
+        //if (debug)
+        // Log (packet)
     }
     else
         rc = FAILURE;