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
Async< Network, Timer, Thread, Mutex > Class Template Reference
non-blocking, threaded MQTT client API More...
#include <MQTTAsync.h>
Public Member Functions | |
void | setConnectionLostHandler (connectionLostHandlers clh) |
Set the connection lost callback - called whenever the connection is lost and we should be connected. | |
void | setDefaultMessageHandler (messageHandler mh) |
Set the default message handling callback - used for any message which does not match a subscription message handler. |
Detailed Description
template<class Network, class Timer, class Thread, class Mutex>
class MQTT::Async< Network, Timer, Thread, Mutex >
non-blocking, threaded MQTT client API
- Parameters:
-
Network a network class which supports send, receive Timer a timer class with the methods:
Definition at line 79 of file MQTTAsync.h.
Member Function Documentation
void setConnectionLostHandler | ( | connectionLostHandlers | clh ) |
Set the connection lost callback - called whenever the connection is lost and we should be connected.
- Parameters:
-
clh - pointer to the callback function
Definition at line 106 of file MQTTAsync.h.
void setDefaultMessageHandler | ( | messageHandler | mh ) |
Set the default message handling callback - used for any message which does not match a subscription message handler.
- Parameters:
-
mh - pointer to the callback function
Definition at line 114 of file MQTTAsync.h.
Generated on Fri Jul 15 2022 17:16:07 by
