Print SSL errors for debugging

This commit is contained in:
rodriguezst
2022-06-15 10:35:50 +00:00
committed by GitHub
parent 9b1adf7032
commit 1c4fc0e902
7 changed files with 26 additions and 2 deletions

View File

@@ -84,6 +84,18 @@ void WifiDevice::reconfigure()
ESP.restart();
}
void WifiDevice::printError()
{
if(_wifiClientSecure != nullptr)
{
char lastError[100];
_wifiClientSecure->lastError(lastError,100);
Serial.println(lastError);
}
Serial.print(F("Free Heap: "));
Serial.println(ESP.getFreeHeap());
}
bool WifiDevice::isConnected()
{
return WiFi.isConnected();