Fix mqtt_client.py example to call background loop function.
This commit is contained in:
parent
f1d11bf17b
commit
df9d3ecdba
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue