From 50782d9948de21a59bb3e23c8baeaef26c77a1e2 Mon Sep 17 00:00:00 2001 From: Robert Borzutzki Date: Wed, 19 Oct 2022 09:10:45 +0200 Subject: [PATCH] reformat --- examples/mqtt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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