fix bug
This commit is contained in:
parent
6a176dae0c
commit
8f320470d6
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue