MQTT client used to connect and communicate with a Broker.
template < typenameStreamType
, typenameTlsContext
= std::monostate, typenameLoggerType
= noop_logger > class mqtt_client
Name |
Description |
---|---|
Rebinds the client type to another executor. |
|
The executor type associated with the client. |
Name |
Description |
---|---|
Disconnect the Client by sending a —
Disconnect the Client by sending a |
|
Send a |
|
Asynchronously receive an Application Message. |
|
Start the Client. |
|
Send a —
Send a |
|
Send an —
Send an |
|
Assign an authenticator that the Client will use for |
|
Assign a list of Brokers that the Client will attempt to connect to. |
|
Cancel all asynchronous operations. This function has terminal effects. |
|
Retrieves the |
|
Retrieves the value of a specific property from the last |
|
Assign |
|
Assign a property that will be sent in a |
|
Assign credentials that will be used to connect to a Broker. |
|
Get the executor associated with the object. |
|
Assign the maximum time interval that is permitted to elapse between two transmissions from the Client. |
|
mqtt_client [constructor] |
Constructs a Client with given parameters. —
Move-construct an |
Move assignment operator. |
|
Initiates Re-authentication
using the authenticator given in the |
|
Get the context object used in TLS/SSL connection. |
|
Assign a |
|
~mqtt_client [destructor] |
Destructor. |
Name |
Description |
---|---|
Type of the underlying transport protocol used to transfer the stream of bytes between the Client and the Broker. The transport must be ordered and lossless. |
|
Type of the context object used in TLS/SSL connections. |
|
Type of object used to log events within the Client. |
Distinct objects: safe.
Shared objects: unsafe.
This class is not thread-safe. The application must also ensure that all asynchronous operations are performed within the same implicit or explicit strand.
Header: async_mqtt5/mqtt_client.hpp
Convenience header: async_mqtt5.hpp