Browse Source

add hostname to ui info page

Thomas Buck 6 months ago
parent
commit
43cac7ae1b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/ui.cpp

+ 1
- 1
src/ui.cpp View File

@@ -201,7 +201,7 @@ static void draw_info(void) {
201 201
     tft.drawString("Uptime: " + String(millis() / 1000) + "sec", 0, 40 + 16 * 8, 1);
202 202
     tft.drawString("IPv4: " + WiFi.localIP().toString(), 0, 40 + 16 * 9, 1);
203 203
     tft.drawString("IPv6: " + WiFi.localIPv6().toString(), 0, 40 + 16 * 10, 1);
204
-
204
+    tft.drawString("Hostname: " + String(SENSOR_HOSTNAME_PREFIX) + String(SENSOR_ID), 0, 40 + 16 * 11, 1);
205 205
     tft.drawString("LDR: " + String(ldr_value), 0, 40 + 16 * 12, 1);
206 206
 }
207 207
 

Loading…
Cancel
Save