Skip to content
Permalink
Browse files

Start the mqtt.Client loop (threaded)

  • Loading branch information
prologic committed Jul 29, 2015
1 parent ef64fb9 commit 2bd096f6ada86ce5e2612e3db3c965be541685da
Showing with 1 addition and 0 deletions.
  1. +1 −0 broker/mqtt.py
@@ -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))

0 comments on commit 2bd096f

Please sign in to comment.
You can’t perform that action at this time.