diff --git a/examples/mqtt.py b/examples/mqtt.py index 6b868cf..0c1bc4d 100644 --- a/examples/mqtt.py +++ b/examples/mqtt.py @@ -85,6 +85,7 @@ def on_message(client, userdata, msg): values_draw.rectangle((150, line, 220, 50), fill = 255) values_draw.text((150, line), msg.payload.decode(), font = font10, fill = 0) epd.DisplayPartial(epd.getbuffer(values_image)) + time.sleep(1) #print(f"`{msg.topic}`: `{msg.payload.decode()}`") Connected = False #global variable for the state of the connection