We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30417aa commit efeda1fCopy full SHA for efeda1f
src/platforms/esp/32/ota/ota_impl.cpp
@@ -4,6 +4,11 @@
4
#if defined(ESP32)
5
6
#include "platforms/ota.h"
7
+#include "platforms/esp/esp_version.h"
8
+
9
+// OTA requires IDF 4.0 or higher for HTTP server and OTA APIs
10
+// For IDF 3.3 and earlier, fall back to null implementation
11
+#if ESP_IDF_VERSION_4_OR_HIGHER
12
13
// ESP-IDF headers
14
#include <esp_http_server.h>
@@ -772,4 +777,6 @@ fl::shared_ptr<IOTA> platform_create_ota() {
772
777
} // namespace platforms
773
778
} // namespace fl
774
779
780
+#endif // ESP_IDF_VERSION_4_OR_HIGHER
781
775
782
#endif // ESP32
0 commit comments