Open richievos opened 1 year ago
Works in bf84e29. First stops working in e41452e.
Issue appears to be this this line:
// old
if (keep_alive && (millis() >= alive))
// new
if (keep_alive && (millis() >= alive - 5000))
what's that - 5000
about? Is that something accidentally left in after testing?
I sent a PR removing that -5000
: https://github.com/hsaturn/TinyMqtt/pull/72
I'm not sure what that is representing, so I'm not sure how to test ramifications. This version works for me though.
I vote a "+1", similar here, I created a fork quite a while ago and addressed the problem of memory leaks due to bad MQTT client handling (AFAIR pr23). This old version works on two of my devices, stable for many weeks. I tried the latest official versions, but these still fail after less than one day. Same symptoms, device is still active (web server still works), but MQTT is dead, does not respond...
PR about 5000ms merged
I just updated to the 1.0.0 tag in an attempt to resolve some memory leaks I believe are occurring from TinyMqtt. After updating I can no longer connect to TinyMqtt.
Output under 0.9.18:
Output under 1.0.0:
I'll debug more, but posting in case others see connectivity issues in the meantime.