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 Mon, 23 Mar 2026 11:26:12 +0000 hourly 1 https://wordpress.org/?v=6.8.5 By: Sara Santos https://randomnerdtutorials.com/esp32-ota-over-the-air-vs-code/#comment-1171674 Mon, 23 Mar 2026 11:26:12 +0000 https://randomnerdtutorials.com/?p=101731#comment-1171674 In reply to David Lowther.

Thanks.
I have to revisit and update all these posts.

Thanks for sharing that example. I’ll take a look, and maybe implement it in one of our guides.
Regards,
Sara

]]>
By: David Lowther https://randomnerdtutorials.com/esp32-ota-over-the-air-vs-code/#comment-1170246 Thu, 19 Mar 2026 13:31:23 +0000 https://randomnerdtutorials.com/?p=101731#comment-1170246 In reply to Sara Santos.

So, it is better to switch to the new version of the library.
I realise that, but my point was there’s no warning at the top of this page to let people know that, AFAICT, there’s no way to get the library used by this page, and even if one goes and gets the source from github it still refuses to compile.

FWIW I ended up not using a library to add the update feature to my existing project (using the older espressif API and Async Web Server). I used the example from here:
reddit.com/r/esp32/comments/gqostn/ota_parameters_from_url_webserver_vs/

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-ota-over-the-air-vs-code/#comment-1169697 Tue, 17 Mar 2026 16:29:05 +0000 https://randomnerdtutorials.com/?p=101731#comment-1169697 In reply to David Lowther.

Hi.
The owner of the library marked it as deprecated.
So, it is better to switch to the new version of the library.
We still didn’t have the time to experiment with this new version and update the tutorial. I’m sorry about it.

The new version of the library provides a demo example that you can use to add to your projects: github.com/ayushsharma82/ElegantOTA/tree/master/examples

We’ll try to take a look at this issue soon.

Regards,
Sara

]]>
By: David Lowther https://randomnerdtutorials.com/esp32-ota-over-the-air-vs-code/#comment-1169384 Mon, 16 Mar 2026 10:26:06 +0000 https://randomnerdtutorials.com/?p=101731#comment-1169384 Should this project be deleted or marked as “deprecated do not try this”?
I’d like to add OTA web update to my existing project that uses ESP Async WebServer.
I just tried using https://github.com/ayushsharma82/AsyncElegantOTA/releases/tag/v2.2.9 and platformio says it can’t find the package.
So I copied the files from source code (zip) into the src files folder of my project.
Then it failed to build because AsyncElegantOTA.h contains the line:
“#error AsyncElegantOTA library is deprecated, Please consider migrating to newer ElegantOTA library which now comes with an async mode. Learn More: https://docs.elegantota.pro/async-mode/

I commented out that line and it built ok, but then when I try adding “/upate” to the IP address of my ESP32 (“http://192.168.0.155/update”) I got:
“http://192.168.0.155/update might have a temporary problem or it could have moved.
Error code: 500 Internal Server Error”
Am I wasting my time trying to get this working?

]]>
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 ?

]]>