Fix mqtt_client.py example to call background loop function.

This commit is contained in:
Tony DiCola 2015-01-18 00:57:22 -08:00
parent f1d11bf17b
commit df9d3ecdba

View file

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