Skip to content
New issue

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

How to run with user/pass #14

Closed
sonecabr opened this issue Jul 24, 2017 · 2 comments
Closed

How to run with user/pass #14

sonecabr opened this issue Jul 24, 2017 · 2 comments

Comments

@sonecabr
Copy link

its possible to set the username and password on test scenario to run with secured mqtt brokers?

@ioolkos
Copy link
Contributor

ioolkos commented Jul 24, 2017

Hey @sonecabr thanks for looking into vmq_mzbench.

Yes, you can actually use all options you see in the client init function: https://github.com/erlio/vernemq/blob/master/apps/vmq_commons/src/gen_emqtt.erl#L288

That is, you can use them in a connect command in your scenario file, sth like this:

 connect([t(host, "127.0.0.1"),
                    t(port,8883),
                    t(client,fixed_client_id("pool1", worker_id())),
                    t(username, "test"),
                    t(password, "test"),
                    t(clean_session,true),
                    t(keepalive_interval,60),
                    t(proto_version,4), t(reconnect_timeout,15), t(transport, t(ssl, [t(reuse_sessions, false)]))])

typed from the back of my head... check for typos ;)

@sonecabr
Copy link
Author

Many thanks @ioolkos !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants