changed mqtt port to 8080

This commit is contained in:
ishak jmilou.ishak
2024-12-02 12:45:26 +01:00
parent eb04d35d40
commit 2e5af52ba8

View File

@@ -10,7 +10,7 @@ def on_message(client, userdata, message):
# Create an MQTT client instance # Create an MQTT client instance
mqtt_client = mqtt.Client() mqtt_client = mqtt.Client()
mqtt_client.username_pw_set("server", "serverwachtwoordofzo") mqtt_client.username_pw_set("server", "serverwachtwoordofzo")
mqtt_client.connect("localhost", 1884, 60) mqtt_client.connect("localhost", 8080, 60)
mqtt_client.loop_start() mqtt_client.loop_start()
mqtt_client.subscribe("kobuki/data") mqtt_client.subscribe("kobuki/data")
mqtt_client.on_message = on_message # this lines needs to be under the function definition otherwise it cant find which function it needs to use mqtt_client.on_message = on_message # this lines needs to be under the function definition otherwise it cant find which function it needs to use