Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MQTT by
Revision 42:f5beda831651, committed 2014-08-21
- Comitter:
- icraggs
- Date:
- Thu Aug 21 12:40:43 2014 +0000
- Parent:
- 41:b7e86fa6dbb8
- Child:
- 43:21da1f744243
- Commit message:
- latest updates
Changed in this revision
| MQTTClient.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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;
