Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the example as-is; no modifications and AIO seems to kick me out every 5 minutes to the second? #25

Closed
bubba198 opened this issue Aug 30, 2016 · 2 comments · Fixed by #27 · May be fixed by MonoHelixLabs/io-client-python#1

Comments

@bubba198
Copy link

bubba198 commented Aug 30, 2016

Hi,

I am using the Python example mqtt_client.py as-is; no major modifications and AIO seems to kick me out every 5 minutes to the second? I see no time out in the code; am I missing something or is this an AIO issue?

My log is below; with minor fluctuations within a matter of seconds I do get kicked out every 5 minutes; I did modify the exmaple so that it re-connects right away but I though I bring this up.

Thanks

Connected to Adafruit IO!  Listening for festival changes...
Current date & time Tue Aug 30 10:57:43 2016
Disconnected from Adafruit IO!
Current date & time Tue Aug 30 11:02:44 2016
Now we will re-connect to AIO
Connected to Adafruit IO!  Listening for festival changes...
Current date & time Tue Aug 30 11:02:45 2016
Disconnected from Adafruit IO!
Current date & time Tue Aug 30 11:07:45 2016
Now we will re-connect to AIO
Connected to Adafruit IO!  Listening for festival changes...
Current date & time Tue Aug 30 11:07:46 2016
Disconnected from Adafruit IO!
Current date & time Tue Aug 30 11:12:47 2016
Now we will re-connect to AIO
Connected to Adafruit IO!  Listening for festival changes...
Current date & time Tue Aug 30 11:12:48 2016
Disconnected from Adafruit IO!
Current date & time Tue Aug 30 11:17:48 2016
Now we will re-connect to AIO
Connected to Adafruit IO!  Listening for festival changes...
Current date & time Tue Aug 30 11:17:49 2016
Disconnected from Adafruit IO!
Current date & time Tue Aug 30 11:22:50 2016
Now we will re-connect to AIO
Connected to Adafruit IO!  Listening for festival changes...
Current date & time Tue Aug 30 11:22:51 2016
Disconnected from Adafruit IO!
Current date & time Tue Aug 30 11:27:51 2016
Now we will re-connect to AIO
Connected to Adafruit IO!  Listening for festival changes...
Current date & time Tue Aug 30 11:27:52 2016
Disconnected from Adafruit IO!
Current date & time Tue Aug 30 11:32:53 2016

radudragusin added a commit to MonoHelixLabs/io-client-python that referenced this issue Oct 2, 2016
Fix KEEP_ALIVE_SEC to be 60 seconds instead of the current value of 3600 which is in fact an hour.
This fixes adafruit#25 which is an issue because the broker disconnects after 300 seconds with no ping.
@numericOverflow
Copy link

FYI - I had the same disconnection issue, and the patch @radudragusin posted fixed it for me.

@ladyada --> I love your stuff, but you might want to have someone spend some time polishing your python lib for IoT platform. The examples have some underlying bugs/flaws and users have pushed patches, but no one is merging them into your platform here on github.

@bubba198
Copy link
Author

@numericOverflow thanks guys; testing over a some period of time now and will follow up with results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants