You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But on my system, no 'Connected' message is printed before the python script terminates. I added a time.sleep(5) after client.connect(...) to delay script termination, and 'Connected' now prints, as expected.
The text was updated successfully, but these errors were encountered:
Step 4 of the Python Snake MQTT tutorial says to run python code to connect to 'mqtt.ably.io' mqtt broker.
The code
should trigger the stdout message 'Connected' because the on connect callback prints 'Connected':
But on my system, no 'Connected' message is printed before the python script terminates. I added a
time.sleep(5)
afterclient.connect(...)
to delay script termination, and 'Connected' now prints, as expected.The text was updated successfully, but these errors were encountered: