diff --git a/wifi.ino b/wifi.ino index e250712..b586df9 100755 --- a/wifi.ino +++ b/wifi.ino @@ -22,11 +22,11 @@ bool connectWiFi() { // connect to the wifi with the above defined credentials while(WiFi.status() != WL_CONNECTED) { delay(2000); Serial.printf("."); if(WiFi.status() == WL_NO_SSID_AVAIL) { - Serial.println("\n[WiFi] Failed to connect to WiFi. Reason: WL_NO_SSID_AVAIL"); + Serial.printf("\n[WiFi] Failed to connect to WiFi \"%s\". Reason: WL_NO_SSID_AVAIL\n", wiFiSSID); blinkLED(LED_ON_WIFI_ERROR); return false; } else if(WiFi.status() == WL_CONNECT_FAILED) { - Serial.println("\n[WiFi] Failed to connect to WiFi. Reason: WL_CONNECT_FAILED"); + Serial.printf("\n[WiFi] Failed to connect to WiFi \"%s\". Reason: WL_CONNECT_FAILED\n", wiFiSSID); blinkLED(LED_ON_WIFI_ERROR); return false; }