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 do i configure mqtts connection? #19

Open
gobba opened this issue Jan 22, 2020 · 1 comment
Open

how do i configure mqtts connection? #19

gobba opened this issue Jan 22, 2020 · 1 comment

Comments

@gobba
Copy link

gobba commented Jan 22, 2020

ive been trying to connect to my mqtt broker using ssl, and username/pass but cant get it to work. Whats the options or format of the host?

@sgupta999
Copy link
Owner

sgupta999 commented Jan 23, 2020

right now the server just supports mqtt using username / password.
since i am using the npm mqtt i guess you could configure to use tls over mqtt to connect - but you will have to pass additional parameters in config and modify the code to connect to mqtt broker.

no plans on my part to do it right now. If enough people request it I might look into it,

not sure how handy you are with coding - but if you are you could relatively easily make the changes.

Look under
https://www.npmjs.com/package/mqtt#client for tls.connect

and

http://nodejs.org/api/tls.html#tls_tls_connect_options_callback

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