change mqtt port in python

This commit is contained in:
2025-01-06 15:16:13 +01:00
parent a59b9c8714
commit 0832da0d3b

View File

@@ -38,7 +38,7 @@ def on_message(client, userdata, message):
# Create an MQTT client instance
mqtt_client = mqtt.Client()
mqtt_client.username_pw_set("server", "serverwachtwoordofzo")
mqtt_client.connect("localhost", 1883, 60)
mqtt_client.connect("localhost", 1884, 60)
mqtt_client.loop_start()
mqtt_client.subscribe("kobuki/data")
mqtt_client.subscribe("kobuki/cam")