diff --git a/examples/mqtt.py b/examples/mqtt.py index 24aaf9a..bef2645 100644 --- a/examples/mqtt.py +++ b/examples/mqtt.py @@ -30,7 +30,8 @@ def on_connect(client, userdata, flags, rc): print("Failed to connect, return code %d\n", rc) def on_message(client, userdata, msg): - print(f"Received `{msg.payload.decode()}` from `{msg.topic}` topic") + print(f"`{msg.topic}`: `{msg.payload.decode()}`") + print("-----") Connected = False #global variable for the state of the connection