Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::string user = "user";
- std::string password = "password";
- mqtt::connect_options connOpts;
- connOpts.set_user_name(user);
- connOpts.set_password(password);
- /**
- * Sets the user name to use for the connection.
- * @param userName
- */
- void set_user_name(const std::string& userName);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement