This commit is contained in:
Joerg Lehmann 2024-10-19 11:43:44 +02:00
parent 6a176dae0c
commit 8f320470d6
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ MQTT_CLIENT_ID = 'MQTT_Logfile_Bridge'
def on_connect(client, userdata, flags, reason_code, properties):
""" The callback for when the client receives a CONNACK response from the server."""
print('Connected with result code ' + reason_code)
print(f"Connected with result code {reason_code}")
client.subscribe(MQTT_TOPIC)
def _parse_mqtt_message(topic, payload):