![]() |
paho-mqtt-cpp
MQTT C++ Client for POSIX and Windows
|
#include <create_options.h>
Public Types | |
using | self = create_options_builder |
Public Member Functions | |
create_options_builder () | |
auto | send_while_disconnected (bool on=true, bool anyTime=false) -> self & |
auto | max_buffered_messages (int n) -> self & |
auto | mqtt_version (int ver) -> self & |
auto | delete_oldest_messages (bool on=true) -> self & |
auto | restore_messages (bool on=true) -> self & |
auto | persist_qos0 (bool on=true) -> self & |
create_options | finalize () |
Builder class to generate the create options.
This class
|
inline |
Default constructor.
|
inline |
Sets whether the client will accept message to publish while disconnected.
on | true to allow the application to publish messages while disconnected, false returns an error on publish if disconnected. |
anyTime | If true, allows you to publish messages before the first successful connection. |
|
inline |
Sets the maximum number of offline buffered messages.
n | The maximum number of offline buffered messages. |
|
inline |
Sets the MQTT version used to create the client.
ver | The MQTT version used to create the client. |
|
inline |
Determines what to do when the maximum number of buffered messages is reached: delete the oldest messages rather than the newest.
on | true When the output queue is full, delete the oldest message, false drop the newest message being added. |
|
inline |
Determines whether to restore persisted messages or clear the persistence store. (Defaults true)
on | true to restore persisted messages, false to clear the persistence store. |
|
inline |
Whether to persist QoS 0 messages. (Defaults true)
on | true persist QoS 0 messages, false, don't. |
|
inline |
Finish building the options and return them.