![]() |
Home | Libraries | People | FAQ | More |
MQTT client used to connect and communicate with a Broker.
Defined in header <boost/mqtt5/mqtt_client.hpp>
template< typename StreamType, typename TlsContext = std::monostate, typename LoggerType = noop_logger> class mqtt_client;
Name |
Description |
---|---|
The executor type associated with the client. |
|
Rebinds the client type to another executor. |
Name |
Description |
---|---|
Disconnect the Client by sending a |
|
Send a |
|
Asynchronously receive an Application Message. |
|
Start the Client. |
|
Send a |
|
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 assignment operator. |
|
Initiates |
|
Get the context object used in TLS/SSL connection. |
|
Assign a |
|
~mqtt_client [destructor] |
Destructor. |
Type |
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.
Convenience header <boost/mqtt5.hpp>