We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.3.0 hello. how to set username and password when i connect ? with mqtt5 client
The text was updated successfully, but these errors were encountered:
Hi @zqb666 - It depends on how the broker authorization is setup but for simple auth:
final Mqtt5BlockingClient client = Mqtt5Client.builder() .identifier(getClientId()) .serverHost(HOST) .serverPort(PORT) .simpleAuth() .username(USERNAME) .password(ByteBuffer.wrap(PASSWORD.getBytes(StandardCharsets.UTF_8))) .applySimpleAuth()
See also this blog post: Authentication with Username and Password
Sorry, something went wrong.
Hi @zqb666 - did this help out at all? Did you find a solution that works for you?
No branches or pull requests
1.3.0
hello. how to set username and password when i connect ?
with mqtt5 client
The text was updated successfully, but these errors were encountered: