Add delay + logs

This commit is contained in:
jpirnay
2026-05-20 14:35:41 +02:00
parent b1e430f1ca
commit 02adb40f95
2 changed files with 10 additions and 0 deletions
+3
View File
@@ -6,6 +6,7 @@
#include <NetworkClientSecure.h>
#include <StreamString.h>
#include <base64.h>
#include <esp_heap_caps.h>
#include <cstring>
#include <memory>
@@ -127,6 +128,8 @@ HttpDownloader::DownloadError HttpDownloader::downloadToFile(const std::string&
LOG_DBG("HTTP", "Downloading: %s", url.c_str());
LOG_DBG("HTTP", "Destination: %s", destPath.c_str());
LOG_DBG("HTTP", "Heap free: %u, largest block: %u", esp_get_free_heap_size(),
heap_caps_get_largest_free_block(MALLOC_CAP_DEFAULT));
http.begin(*client, url.c_str());
http.setReuse(false);