Skip to content

Commit

Permalink
Start the mqtt.Client loop (threaded)
Browse files Browse the repository at this point in the history
  • Loading branch information
prologic committed Jul 29, 2015
1 parent ef64fb9 commit 2bd096f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions broker/mqtt.py
Expand Up @@ -28,6 +28,7 @@ def init(self, url):
self.client.on_message = self._on_message

self.client.connect(host, port)
self.client.loop_start()

def _on_connect(self, client, userdata, flags, rc):
print("Connected with result code {0}".format(rc))
Expand Down

0 comments on commit 2bd096f

Please sign in to comment.