remove heartbeat from logs
This commit is contained in:
@@ -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}")
|
||||||
|
|||||||
Reference in New Issue
Block a user