24 #ifndef __mqtt_callback_h
25 #define __mqtt_callback_h
27 #include "MQTTAsync.h"
45 using ptr_t = std::shared_ptr<callback>;
87 #endif // __mqtt_callback_h
std::shared_ptr< callback > ptr_t
Smart/shared pointer to an object of this type.
Definition: callback.h:45
Basic types and type conversions for the Paho MQTT C++ library.
virtual void connection_lost(const string &cause)
This method is called when the connection to the server is lost.
Definition: callback.h:63
virtual void connected(const string &cause)
This method is called when the client is connected.
Definition: callback.h:58
virtual void delivery_complete(delivery_token_ptr tok)
Called when delivery for a message has been completed, and all acknowledgments have been received...
Definition: callback.h:74
std::shared_ptr< const callback > const_ptr_t
Smart/shared pointer to a const object of this type.
Definition: callback.h:47
Provides a mechanism for tracking the completion of an asynchronous action.
Definition: callback.h:41
Declaration of MQTT delivery_token class.
virtual ~callback()
Virtual destructor.
Definition: callback.h:52
virtual void message_arrived(const_message_ptr msg)
This method is called when a message arrives from the server.
Definition: callback.h:68