We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f3b260 commit 8391037Copy full SHA for 8391037
msgflo/msgflo.py
@@ -200,6 +200,10 @@ def __init__(self, broker):
200
Engine.__init__(self, broker)
201
202
self._client = mqtt.Client()
203
+
204
+ if self.broker_info.username:
205
+ self._client.username_pw_set(self.broker_info.username, self.broker_info.password)
206
207
self._client.on_connect = self._on_connect
208
self._client.on_message = self._on_message
209
self._client.on_subscribe = self._on_subscribe
0 commit comments