25 #ifndef __mqtt_iasync_client_h
26 #define __mqtt_iasync_client_h
60 virtual void remove_token(
token* tok) =0;
207 const void* payload,
size_t n,
208 int qos,
bool retained) =0;
218 const void* payload,
size_t n) =0;
235 const void* payload,
size_t n,
236 int qos,
bool retained,
250 int qos,
bool retained) =0;
267 virtual delivery_token_ptr
publish(const_message_ptr msg) =0;
278 virtual delivery_token_ptr
publish(const_message_ptr msg,
305 virtual token_ptr
subscribe(const_string_collection_ptr topicFilters,
323 virtual token_ptr
subscribe(const_string_collection_ptr topicFilters,
338 virtual token_ptr
subscribe(
const string& topicFilter,
int qos) =0;
355 virtual token_ptr
subscribe(
const string& topicFilter,
int qos,
364 virtual token_ptr
unsubscribe(
const string& topicFilter) =0;
373 virtual token_ptr
unsubscribe(const_string_collection_ptr topicFilters) =0;
386 virtual token_ptr
unsubscribe(const_string_collection_ptr topicFilters,
399 virtual token_ptr
unsubscribe(
const string& topicFilter,
407 #endif // __mqtt_iasync_client_h
virtual void set_callback(callback &cb)=0
Sets a callback listener to use for events that happen asynchronously.
Basic types and type conversions for the Paho MQTT C++ library.
Provides a mechanism for tracking the completion of an asynchronous action.
Definition: iaction_listener.h:48
Implementation of the class 'disconnect_options'.
virtual token_ptr subscribe(const_string_collection_ptr topicFilters, const qos_collection &qos)=0
Subscribe to multiple topics, each of which may include wildcards.
Holds the set of options that control how the client connects to a server.
Definition: connect_options.h:46
Represents a topic destination, used for publish/subscribe messaging.
Definition: topic.h:42
Declaration of MQTT message class.
Declaration of MQTT callback class.
virtual delivery_token_ptr publish(string_ref topic, const void *payload, size_t n, int qos, bool retained)=0
Publishes a message to a topic on the server.
virtual bool is_connected() const =0
Determines if this client is currently connected to the server.
Declaration of MQTT exception class.
virtual token_ptr reconnect()=0
Reconnects the client using options from the previous connect.
virtual void disable_callbacks()=0
Stops the callbacks.
virtual delivery_token_ptr get_pending_delivery_token(int msgID) const =0
Returns the delivery token for the specified message ID.
Enables an application to communicate with an MQTT server using non-blocking methods.
Definition: iasync_client.h:57
virtual std::vector< delivery_token_ptr > get_pending_delivery_tokens() const =0
Returns the delivery tokens for any outstanding publish operations.
virtual string get_server_uri() const =0
Returns the address of the server used by this client.
virtual token_ptr disconnect()=0
Disconnects from the server.
Declaration of MQTT iaction_listener class.
Declaration of MQTT connect_options class.
virtual token_ptr unsubscribe(const string &topicFilter)=0
Requests the server unsubscribe the client from a topic.
virtual string get_client_id() const =0
Returns the client ID used by this client.
Provides a mechanism for tracking the completion of an asynchronous action.
Definition: callback.h:41
Declaration of MQTT delivery_token class.
Declaration of MQTT iclient_persistence interface.
Provides a mechanism for tracking the completion of an asynchronous action.
Definition: token.h:49
virtual token_ptr connect()=0
Connects to an MQTT server using the default options.
std::vector< int > qos_collection
Type for a collection of QOS values.
Definition: iasync_client.h:64
virtual ~iasync_client()
Virtual destructor.
Definition: iasync_client.h:69
Options for disconnecting from an MQTT broker.
Definition: disconnect_options.h:37
Declaration of MQTT token class.