Comments on: ESP32 OTA (Over-the-Air) Updates – AsyncElegantOTA (VS Code + PlatformIO) https://randomnerdtutorials.com/esp32-ota-over-the-air-vs-code/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Wed, 12 Feb 2025 10:12:20 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Sara Santos https://randomnerdtutorials.com/esp32-ota-over-the-air-vs-code/#comment-1007291 Wed, 12 Feb 2025 10:12:20 +0000 https://randomnerdtutorials.com/?p=101731#comment-1007291 In reply to Carlos Rodriguez.

Hi.
No.
But, make sure that you follow these instructions: https://rntlab.com/question/solvedassert-failed-tcp_alloc-idf-components-lwip-lwip-src-core-tcp-c1851-required-to-lock-tcpip-core-functionality/
Regards,
Sara

]]>
By: Carlos Rodriguez https://randomnerdtutorials.com/esp32-ota-over-the-air-vs-code/#comment-1006578 Sun, 09 Feb 2025 11:57:24 +0000 https://randomnerdtutorials.com/?p=101731#comment-1006578 Hi, At some point the past, you wrote: “If you’re using an ESP32, you need to downgrade your ESP32 boards’ add-on to version 2.0.X. At the moment, the AsyncElegantOTA library is not compatible with version 3.X. If you want to use version 3.X, please use the newest version of the library: ElegantOTA V3.”
Please let me know if this is still valid with current versions (01/09/25).
Thanks for your great help.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-ota-over-the-air-vs-code/#comment-1004967 Mon, 03 Feb 2025 10:22:19 +0000 https://randomnerdtutorials.com/?p=101731#comment-1004967 In reply to jonsummers.

Hi.
Thanks.
We already updated the tutorials that use Arduino IDE.
We need to also update this ones.
Thanks for the explanation.
Regards,
Sara

]]>
By: jonsummers https://randomnerdtutorials.com/esp32-ota-over-the-air-vs-code/#comment-1004851 Mon, 03 Feb 2025 00:03:47 +0000 https://randomnerdtutorials.com/?p=101731#comment-1004851 ElegantOTA + VSCode + pio + espressif32
The ecosystem for ElegantOTA has changed recently.
Anyone find your article and related articles will be easily bewildered.
I have included some url links below that describe the necessary changes.
Changes:
** lib changes
github/mathieucarbou has archived ESPAsyncWebServer and AsyncTCP. (Jan 11, 2025)
Switch to the new projects: ESP32Async/ESPAsyncWebServer and ESP32Async/AsyncTCP.
see [ https://github.com/mathieucarbou/ESP32Async-ESPAsyncWebServer#dependencies ]
Do not use AsyncElegantOTA.
Instead use ElegantOTA with the flag -D ELEGANTOTA_USE_ASYNC_WEBSERVER=1
see [ https://docs.elegantota.pro/getting-started/async-mode ]

** platformio.ini should look like this:
platform = espressif32
lib_compat_mode = strict
lib_ldf_mode = chain

lib_deps = ;; https://registry.platformio.org
ESP32Async/AsyncTCP @^3.3.3
ESP32Async/ESPAsyncWebServer @^3.6.2
tzapu/WiFiManager @2.0.17 ;; need WiFiManager.h for defines: HTTP_GET etc
ayushsharma82/ElegantOTA @^3.1.6 ;; async requires -D ELEGANTOTA_USE_ASYNC_WEBSERVER=1
;; note ElegantOTA installs mathieucarbou/ESPAsyncWebServer@3.3.11, mathieucarbou/AsyncTCP@3.3.2
SPIFFS

** header include and necessay defines in main.cpp should look like:
#include <Arduino.h>
#include <WiFi.h>
#include <WiFiManager.h> // WiFiManager header defines: HTTP_GET, project doesnt not create WiFiManager object
#include <AsyncTCP.h> // from ESP32Async/AsyncTCP
// see [ https://stackoverflow.com/questions/75043892/i-am-facing-http-get-conflicts-with-a-previous-declaration-error-with-the-wifi ]
#define WEBSERVER_H
#include <ESPAsyncWebServer.h> // from ESP32Async/ESPAsyncWebServer
#include <ElegantOTA.h> // async requires -D ELEGANTOTA_USE_ASYNC_WEBSERVER=1
// see [ https://docs.elegantota.pro/getting-started/async-mode ]
// #include <SPIFFS.h> // REM to prepare and load spiffs

** Library Manager: Note that though ESP32Async/AsyncTCP and ESP32Async/ESPAsyncWebServer get installed
ElegantOTA install will trigger depends: mathieucarbou/ESPAsyncWebServer mathieucarbou/AsyncTCP
Library Manager: Installing ESP32Async/AsyncTCP @ ^3.3.3
Library Manager: Installing ESP32Async/ESPAsyncWebServer @ ^3.6.2
Library Manager: Installing tzapu/WiFiManager @ 2.0.17
Library Manager: Installing ayushsharma82/ElegantOTA @ ^3.1.6
Library Manager: Resolving dependencies…
Library Manager: Installing mathieucarbou/ESPAsyncWebServer @ ^3.3.11
Library Manager: Installing mathieucarbou/AsyncTCP @ ^3.3.2

don’t fret, the Dependency Graph uses the required libs
|– AsyncTCP @ 3.3.3
|– ESPAsyncWebServer @ 3.6.2
|– WiFiManager @ 2.0.17
|– ElegantOTA @ 3.1.6
|– SPIFFS @ 3.1.1
|– SPI @ 3.1.1
|– WiFi @ 3.1.1

I hope this helps and that the VSCode + OTA articles are amended.

]]>
By: MOHIT https://randomnerdtutorials.com/esp32-ota-over-the-air-vs-code/#comment-895278 Wed, 28 Feb 2024 12:17:52 +0000 https://randomnerdtutorials.com/?p=101731#comment-895278 After I upload the spiffs.bin file into filesystem in elegantOTA dashboard and again visited to root URL but I couldn’t get the page like multiple GPIO’s instead I get webpage for the past code used in firmware.
I use vscode platformIO and used necessary libraries and have correct network credentials, I use windows 11. what might be the problem, I’m hanging in this stage past 3 days. all the codes and instructions followed int his page https://randomnerdtutorials.com/esp32-ota-over-the-air-vs-code/#1-basic-elegantota
can any one sort out the problem.

]]>
By: Gerson Ferreira https://randomnerdtutorials.com/esp32-ota-over-the-air-vs-code/#comment-867473 Mon, 23 Oct 2023 13:56:37 +0000 https://randomnerdtutorials.com/?p=101731#comment-867473 Thanks for this excellent tutorial. My sensors are coded using Esp32 with 100% esp-now. Is it possible to update the firmware using OTA with esp-now ?

]]>
By: Randy Hearn https://randomnerdtutorials.com/esp32-ota-over-the-air-vs-code/#comment-859193 Fri, 08 Sep 2023 14:15:19 +0000 https://randomnerdtutorials.com/?p=101731#comment-859193 To resolve a lot of webserver warnings, and more specifically the error prventing compiling in PlatformIO I simply added #include<Webserver.h> in the main.cpp file.

Can’t say it solved the actual problem as I have only gotten a success in compiling, waiting to try with ESP32.

]]>
By: Mohammed Yasar Dudhwala https://randomnerdtutorials.com/esp32-ota-over-the-air-vs-code/#comment-854705 Sat, 12 Aug 2023 07:16:03 +0000 https://randomnerdtutorials.com/?p=101731#comment-854705 In reply to Sara Santos.

Thank you, it worked,

Regards,
Mohammed Yasar Dudhwala,
Embedded Software Intern, Prayosha Food Services Pvt Ltd,
Prahladnagar, Ahmedabad, Gujarat, India.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-ota-over-the-air-vs-code/#comment-854581 Fri, 11 Aug 2023 09:12:50 +0000 https://randomnerdtutorials.com/?p=101731#comment-854581 In reply to Don Black.

Hi.
Yes.
There’s currently an issue with the AsyncWebServer Library when using PlatformIO.
That’s one of the possible workarounds.
Regards,
Sara

]]>
By: Don Black https://randomnerdtutorials.com/esp32-ota-over-the-air-vs-code/#comment-854542 Thu, 10 Aug 2023 23:33:27 +0000 https://randomnerdtutorials.com/?p=101731#comment-854542 Hello,
There is a small glitch in WebAuthentication.cpp during compiling. With ESP Async WebServer library added through Platformio library manager, a compiler error shows up as: “…..libdeps/esp32dev/ESP Async WebServer/src/WebAuthentication.cpp:74: undefined reference to `mbedtls_md5_starts'”. It appears that this is outdated, but modifying platform.ini to: https://github.com/me-no-dev/ESPAsyncWebServer.git, everything works beautifully.
I hope this helps some save some time.

]]>