From 7d136fdf81cba21750412c03a4b748421e1c8661 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Tue, 2 Dec 2025 01:48:38 +0200 Subject: [PATCH] feat(hosted): Add error logs if HTTP fails --- libraries/ESP_HostedOTA/src/ESP_HostedOTA.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/ESP_HostedOTA/src/ESP_HostedOTA.cpp b/libraries/ESP_HostedOTA/src/ESP_HostedOTA.cpp index 33b2f957419..6ba2f290aa8 100644 --- a/libraries/ESP_HostedOTA/src/ESP_HostedOTA.cpp +++ b/libraries/ESP_HostedOTA/src/ESP_HostedOTA.cpp @@ -143,6 +143,10 @@ bool updateEspHostedSlave() { // Step 15: Clean up allocated buffer free(buff); Serial.println(); + } else if (httpCode == HTTP_CODE_NOT_FOUND) { + Serial.println("ERROR: Update file not found!"); + } else { + Serial.printf("ERROR: HTTP request failed with code %d!", httpCode); } // Step 16: Close HTTP connection