![]() |
paho-mqtt-cpp
MQTT C++ Client for POSIX and Windows
|
#include <response_options.h>
Public Types | |
using | self = response_options_builder |
Public Member Functions | |
response_options_builder (int mqttVersion=MQTTVERSION_DEFAULT) | |
auto | mqtt_version (int mqttVersion) -> self & |
auto | token (const token_ptr &tok) -> self & |
auto | properties (mqtt::properties &&props) -> self & |
auto | properties (const mqtt::properties &props) -> self & |
auto | subscribe_opts (const subscribe_options &opts) -> self & |
auto | subscribe_opts (const std::vector< subscribe_options > &opts) -> self & |
response_options | finalize () |
Class to build response options.
This class
|
inlineexplicit |
Default constructor.
|
inline |
Sets the MQTT protocol version used for the response. This sets up proper callbacks for MQTT v5 or versions prior to that.
mqttVersion | The MQTT version used by the connection. |
Sets the callback context to a generic token.
tok | The token to be used as the callback context. |
|
inline |
Sets the properties for the response options.
props | The properties for the response options. |
|
inline |
Sets the properties for the disconnect message.
props | The properties for the disconnect message. |
|
inline |
Sets the options for a single topic subscription.
opts | The subscribe options. |
|
inline |
Sets the options for a multi-topic subscription.
opts | A vector of the subscribe options. |
|
inline |
Finish building the options and return them.