Skip to content

Commit

Permalink
mqtt-all: update display message
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Esse <[email protected]>
  • Loading branch information
ahresse committed Jun 11, 2024
1 parent 55b5ec6 commit 9d81273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/mqtt-all.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def display_status(disp, mqtt_broker):
text_colour = (255, 255, 255)
back_colour = (0, 170, 170) if check_wifi() else (85, 15, 15)
device_serial_number = get_serial_number()
message = f"{device_serial_number}\nWi-Fi: {wifi_status}\nmqtt-broker: {mqtt_broker}"
message = f"Serial: {device_serial_number}\nWi-Fi: {wifi_status}\nmqtt-broker: {mqtt_broker}"
img = Image.new("RGB", (WIDTH, HEIGHT), color=(0, 0, 0))
draw = ImageDraw.Draw(img)
x1, y1, x2, y2 = draw.textbbox((0,0), message, font=font)
Expand Down

0 comments on commit 9d81273

Please sign in to comment.