Skip to content

Commit

Permalink
added Gemfile
Browse files Browse the repository at this point in the history
don't use MQTT URI
  • Loading branch information
romkey committed Jul 25, 2022
1 parent aa71cc6 commit 5aa3c71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source "http://rubygems.org"

# Gem's dependencies are specified in mqtt.gemspec
gemspec
2 changes: 1 addition & 1 deletion lib/homebus/broker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def connect!
abort 'no broker'
end

@mqtt = MQTT::Client.connect(@uri)
@mqtt = MQTT::Client.connect(host: @host, port: @port, username: @username, password: @password)
end

def configured?
Expand Down

0 comments on commit 5aa3c71

Please sign in to comment.