This commit is contained in:
Robert Borzutzki 2022-10-18 23:02:28 +02:00
parent 514679a801
commit db57939ad4

View File

@ -19,9 +19,7 @@ logging.basicConfig(level=logging.DEBUG)
Connected = False Connected = False
def on_connect(client, userdata, flags, rc):
def connect_mqtt() -> mqtt_client:
def on_connect(client, userdata, flags, rc):
if rc == 0: if rc == 0:
print("Connected to MQTT Broker!") print("Connected to MQTT Broker!")