From ef656a899d86ea7f61e59e95080cba52e293b7ea Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 30 Jun 2020 15:10:18 +0200 Subject: [PATCH] debug output --- src/main.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index c868054..4a5be4f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -175,6 +175,13 @@ void wifiConnect() { wifiMulti.addAP(WIFI_SSID2, WIFI_PASSWD2); wifiMulti.addAP(WIFI_SSID3, WIFI_PASSWD3); + Serial.println(WIFI_SSID); + Serial.println(WIFI_PASSWD); + Serial.println(WIFI_SSID2); + Serial.println(WIFI_PASSWD2); + Serial.println(WIFI_SSID3); + Serial.println(WIFI_PASSWD3); + IPAddress ip = IPAddress(network.ip); IPAddress dns = IPAddress(network.dns); IPAddress subnet = IPAddress(network.subnet); @@ -476,9 +483,17 @@ void displayValues() { // Title display.setCursor(30,y_offset+0); - display.println(timeStr); + display.print(timeStr); display.drawLine(0,y_offset+10,display.width(), y_offset+10, GxEPD_BLACK); + // Status + display.setCursor(190,y_offset+0); + if(WiFi.status() == WL_CONNECTED) { + display.print("W"); + } else { + display.print("_"); + } + // Temp display.drawRect(0,y_offset+10,64,50,GxEPD_BLACK); display.setFont(NULL);