Skip to content

Commit df9d3ec

Browse files
committed
Fix mqtt_client.py example to call background loop function.
1 parent f1d11bf commit df9d3ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/mqtt_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def message(client, feed_id, payload):
5353

5454
# The first option is to run a thread in the background so you can continue
5555
# doing things in your program.
56-
# client.loop_background()
56+
client.loop_background()
5757
# Now send new values every 10 seconds.
5858
print 'Publishing a new message every 10 seconds (press Ctrl-C to quit)...'
5959
while True:

0 commit comments

Comments
 (0)