Advertisement
Guest User

Untitled

a guest
Oct 13th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. std::string user = "user";
  2. std::string password = "password";
  3. mqtt::connect_options connOpts;
  4. connOpts.set_user_name(user);
  5. connOpts.set_password(password);
  6.  
  7. /**
  8. * Sets the user name to use for the connection.
  9. * @param userName
  10. */
  11. void set_user_name(const std::string& userName);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement