Skip to content

Commit 2bd096f

Browse files
committedJul 29, 2015
Start the mqtt.Client loop (threaded)
1 parent ef64fb9 commit 2bd096f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎broker/mqtt.py

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def init(self, url):
2828
self.client.on_message = self._on_message
2929

3030
self.client.connect(host, port)
31+
self.client.loop_start()
3132

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

0 commit comments

Comments
 (0)
Please sign in to comment.