sgupta999 / mqtt-bridge-smartthings

MQTT Bridge To SmartThings [MBS]
MIT License
27 stars 15 forks source link

how do i configure mqtts connection? #19

Open gobba opened 4 years ago

gobba commented 4 years ago

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 commented 4 years ago

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