We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eccc36f + 0a1b340 commit 62d1921Copy full SHA for 62d1921
adafruit_minimqtt/adafruit_minimqtt.py
@@ -776,13 +776,13 @@ def loop(self, timeout=1):
776
self._timestamp = time.monotonic()
777
current_time = time.monotonic()
778
if current_time - self._timestamp >= self.keep_alive:
779
+ self._timestamp = 0
780
# Handle KeepAlive by expecting a PINGREQ/PINGRESP from the server
781
if self.logger is not None:
782
self.logger.debug(
783
"KeepAlive period elapsed - requesting a PINGRESP from the server..."
784
)
785
rcs = self.ping()
- self._timestamp = 0
786
return rcs
787
self._sock.settimeout(timeout)
788
rc = self._wait_for_msg()
0 commit comments