Sfoglia il codice sorgente

add hostname to ui info page

Thomas Buck 5 mesi fa
parent
commit
43cac7ae1b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      src/ui.cpp

+ 1
- 1
src/ui.cpp Vedi 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…
Annulla
Salva