Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion vda5050_connector/vda5050_connector_py/mqtt_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
# Python dependencies
from paho.mqtt import client as mqtt_client
from paho.mqtt.client import error_string
from paho.mqtt.enums import CallbackAPIVersion
import copy
import json
import ssl
Expand Down Expand Up @@ -215,7 +216,7 @@ def __init__(self):
self._serial_number = read_str_parameter(self, "serial_number", "robot_1")

# Configure MQTT
self.mqtt_client = mqtt_client.Client()
self.mqtt_client = mqtt_client.Client(CallbackAPIVersion.VERSION1)
self.mqtt_client.on_connect = self.on_connect_mqtt
self.mqtt_client.on_message = self.on_message_mqtt
self.mqtt_client.on_disconnect = self.on_disconnect_mqtt
Expand Down