Skip to content

Commit 0b033c7

Browse files
committed
Add keepalive option to work around a bug in micropython
micropython/micropython-lib#445
1 parent c9a0337 commit 0b033c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def report_sensors():
4141
(temp, pressure, humidity) = bme.read_compensated_data()
4242

4343
CLIENT_ID = "cripple"
44-
mqtt = MQTTClient(CLIENT_ID, 'libreelec.lan')
44+
mqtt = MQTTClient(CLIENT_ID, 'libreelec.lan', keepalive=60)
4545
mqtt.connect()
4646
mqtt.publish(
4747
'global/house/temperature/{}'.format(CLIENT_ID), str(temp/100))

0 commit comments

Comments
 (0)