Skip to content

Commit 1a7fba5

Browse files
authored
Fix KEEP_ALIVE_SEC to be 60 seconds
Fix KEEP_ALIVE_SEC to be 60 seconds instead of the current value of 3600 which is in fact an hour. This fixes #25 which is an issue because the broker disconnects after 300 seconds with no ping.
1 parent 4d092e7 commit 1a7fba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Adafruit_IO/mqtt_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525

2626
# How long to wait before sending a keep alive (paho-mqtt configuration).
27-
KEEP_ALIVE_SEC = 3600 # One minute
27+
KEEP_ALIVE_SEC = 60 # One minute
2828

2929
logger = logging.getLogger(__name__)
3030

0 commit comments

Comments
 (0)