Fix firmware download

This commit is contained in:
jpirnay
2026-04-21 17:16:19 +02:00
parent b7928a86e3
commit df171560db
4 changed files with 45 additions and 2 deletions
+4 -1
View File
@@ -3,7 +3,9 @@
#include <functional>
#include <string>
#include "esp_https_ota.h"
// Avoid pulling in esp_https_ota.h here — it transitively includes lwip/sockets.h
// which defines INADDR_NONE as a numeric macro, conflicting with Arduino's IPAddress.h.
typedef void* esp_https_ota_handle_t;
class OtaUpdater {
bool updateAvailable = false;
@@ -27,6 +29,7 @@ class OtaUpdater {
OOM_ERROR,
UPDATE_CANCELLED,
UPDATE_IN_PROGRESS,
VALIDATE_FAILED,
};
size_t getOtaSize() const { return otaSize; }