remove heartbeat from logs

This commit is contained in:
2026-02-07 14:54:24 +00:00
parent 652c433509
commit af7c4ade1d

View File

@@ -158,7 +158,6 @@ def heartbeat(client):
"port": MQTT_PORT "port": MQTT_PORT
} }
client.publish(MQTT_TOPIC_HEARTBEAT, json.dumps(heartbeat_msg)) client.publish(MQTT_TOPIC_HEARTBEAT, json.dumps(heartbeat_msg))
print(f"Published heartbeat: {heartbeat_msg}")
time.sleep(30) # Publish every 30 seconds time.sleep(30) # Publish every 30 seconds
except Exception as e: except Exception as e:
print(f"Error publishing heartbeat: {e}") print(f"Error publishing heartbeat: {e}")