[WiFiClientSecure] Shows only free internal heap on logs (#2252)
* Shows only free internal heap on logs Since Mbedtls is running only on internal heap, show internal + PSRAM available memory on logs can confuse the users * Clarify logs
This commit is contained in:
parent
6dd8be3262
commit
229d9b7366
@ -50,7 +50,7 @@ int start_ssl_client(sslclient_context *ssl_client, const char *host, uint32_t p
|
|||||||
char buf[512];
|
char buf[512];
|
||||||
int ret, flags, timeout;
|
int ret, flags, timeout;
|
||||||
int enable = 1;
|
int enable = 1;
|
||||||
log_v("Free heap before TLS %u", xPortGetFreeHeapSize());
|
log_v("Free internal heap before TLS %u", ESP.getFreeHeap());
|
||||||
|
|
||||||
log_v("Starting socket");
|
log_v("Starting socket");
|
||||||
ssl_client->socket = -1;
|
ssl_client->socket = -1;
|
||||||
@ -232,7 +232,7 @@ int start_ssl_client(sslclient_context *ssl_client, const char *host, uint32_t p
|
|||||||
mbedtls_pk_free(&ssl_client->client_key);
|
mbedtls_pk_free(&ssl_client->client_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
log_v("Free heap after TLS %u", xPortGetFreeHeapSize());
|
log_v("Free internal heap after TLS %u", ESP.getFreeHeap());
|
||||||
|
|
||||||
return ssl_client->socket;
|
return ssl_client->socket;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user