fix bug
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ MQTT_CLIENT_ID = 'MQTT_Logfile_Bridge'
|
|||||||
|
|
||||||
def on_connect(client, userdata, flags, reason_code, properties):
|
def on_connect(client, userdata, flags, reason_code, properties):
|
||||||
""" The callback for when the client receives a CONNACK response from the server."""
|
""" 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)
|
client.subscribe(MQTT_TOPIC)
|
||||||
|
|
||||||
def _parse_mqtt_message(topic, payload):
|
def _parse_mqtt_message(topic, payload):
|
||||||
|
|||||||
Reference in New Issue
Block a user