![]() |
PahoMqttCpp
MQTT C++ Client for POSIX and Windows
|
#include <connect_options.h>
Public Member Functions | |
connect_data () | |
connect_data (string_ref userName) | |
connect_data (string_ref userName, binary_ref password) | |
connect_data (const connect_data &other) | |
connect_data & | operator= (const connect_data &rhs) |
string | get_user_name () const |
binary_ref | get_password () const |
void | set_user_name (string_ref userName) |
void | set_password (binary_ref password) |
Friends | |
class | async_client |
The connect options that can be updated before an automatic reconnect.
mqtt::connect_data::connect_data | ( | ) |
Creates an empty set of connection data.
|
explicit |
Creates connection data with a user name, but no password.
userName | The user name for reconnecting to the MQTT broker. |
mqtt::connect_data::connect_data | ( | string_ref | userName, |
binary_ref | password ) |
Creates connection data with a user name and password.
userName | The user name for reconnecting to the MQTT broker. |
password | The password for connecting to the MQTT broker. |
mqtt::connect_data::connect_data | ( | const connect_data & | other | ) |
Copy constructor
other | Another data struct to copy into this one. |
connect_data & mqtt::connect_data::operator= | ( | const connect_data & | rhs | ) |
Copy the connection data.
rhs | Another data struct to copy into this one. |
|
inline |
Gets the user name to use for the connection.
|
inline |
Gets the password to use for the connection.
void mqtt::connect_data::set_user_name | ( | string_ref | userName | ) |
Sets the user name to use for the connection.
userName | The user name for connecting to the MQTT broker. |
void mqtt::connect_data::set_password | ( | binary_ref | password | ) |
Sets the password to use for the connection.
password | The password for connecting to the MQTT broker. |
|
friend |
The client has special access