Comments on: ESP8266 NodeMCU OTA (Over-the-Air) Updates – ElegantOTA Library with Arduino IDE https://randomnerdtutorials.com/esp8266-nodemcu-ota-elegantota-arduino/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Sun, 23 Mar 2025 21:16:56 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Jacques Bourgouin https://randomnerdtutorials.com/esp8266-nodemcu-ota-elegantota-arduino/#comment-1019234 Sun, 23 Mar 2025 21:16:56 +0000 https://randomnerdtutorials.com/?p=164560#comment-1019234 Hello,
I have succeeded to use ElegantOTA to reprogram the firmware of a ESP8266 via OTA.
How do you get a .bin file for the /data containing index.html, *.js .. ?
I did see this information in your examples
Thanks

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-ota-elegantota-arduino/#comment-1016762 Sat, 15 Mar 2025 10:36:28 +0000 https://randomnerdtutorials.com/?p=164560#comment-1016762 In reply to Dave Z.

Hi.
Thanks for the info.
But, I’m also not sure how to do that in Arduino IDE.
Regards,
Sara

]]>
By: Dave Z https://randomnerdtutorials.com/esp8266-nodemcu-ota-elegantota-arduino/#comment-1016724 Sat, 15 Mar 2025 06:26:18 +0000 https://randomnerdtutorials.com/?p=164560#comment-1016724 A more “Elegant” way to than ” #define ELEGANTOTA_USE_ASYNC_WEBSERVER 1 ” is to use a build flag ” build_flags = -D ELEGANTOTA_USE_ASYNC_WEBSERVER=1 “, this has the advantage of not needing to be redone if the library is updated. (I do not use Arduino, not sure if you can use Build Flags in Arduino?)

]]>
By: Martin Eggers https://randomnerdtutorials.com/esp8266-nodemcu-ota-elegantota-arduino/#comment-1000485 Thu, 16 Jan 2025 20:12:27 +0000 https://randomnerdtutorials.com/?p=164560#comment-1000485 Hi folks,

after fumbling around with Arduino Nano and NodeMCU for some small projects years ago, I recently rediscovered the Arduino IDE on my laptop, installed 2.3.4 today and decided, to do some samples with stuff a bit newer to see, how things go. I had downloaded AsyncElegantOTA and LittleFS previously, but never really used it for anything. But I remember, that your samples then at least worked.

After getting compiler-errors with my existing (though updated) libs, I installed the libs you listed above, but can’t even get the unchanged (beside SSD+Pass) above first sample to compile:

— exit with err 1 —
c:\Users\Kunde\Documents\Arduino\libraries\ElegantOTA\src\ElegantOTA.cpp: In lambda function:
c:\Users\Kunde\Documents\Arduino\libraries\ElegantOTA\src\ElegantOTA.cpp:80:71: error: ‘FS_end’ was not declared in this scope; did you mean ‘va_end’?
80 | uint32_t update_size = mode == OTA_MODE_FILESYSTEM ? ((size_t)FS_end – (size_t)FS_start) : ((ESP.getFreeSketchSpace() – 0x1000) & 0xFFFFF000);
| ^~~~~~
| va_end
c:\Users\Kunde\Documents\Arduino\libraries\ElegantOTA\src\ElegantOTA.cpp:80:88: error: ‘FS_start’ was not declared in this scope; did you mean ‘va_start’?
80 | uint32_t update_size = mode == OTA_MODE_FILESYSTEM ? ((size_t)FS_end – (size_t)FS_start) : ((ESP.getFreeSketchSpace() – 0x1000) & 0xFFFFF000);
| ^~~~~~~~
| va_start

exit status 1

So what exactly is my problem here? (Sorry, if this is some kind of beginner’s problem, but that’s, what I am >:-)

regards
Martin

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-ota-elegantota-arduino/#comment-997049 Sat, 04 Jan 2025 10:56:21 +0000 https://randomnerdtutorials.com/?p=164560#comment-997049 In reply to Mike Oshinski.

Hi.
I think this example already restarts the board after a new sketch is uploaded via OTA.
Regards,
Sara

]]>
By: Mike Oshinski https://randomnerdtutorials.com/esp8266-nodemcu-ota-elegantota-arduino/#comment-996841 Fri, 03 Jan 2025 18:06:07 +0000 https://randomnerdtutorials.com/?p=164560#comment-996841 Hi Sara,
I tried the ElegantOTA on both the ESP32 and ESP8266 and they both work great, but I have one question. Do you know an easy way to reset the ESP after downloading the binary code? It must be reset before the new download will begin executing. I am trying to avoid a physical access to the device (that’s why we have OTA).
I tried some HTTP string to initiate an ESP_Restart() but I am having trouble with that.

Maybe y0ou have a good solution. Please advise.

Thank You
Mike Oshinski
NC, USA

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-ota-elegantota-arduino/#comment-993795 Mon, 23 Dec 2024 11:11:58 +0000 https://randomnerdtutorials.com/?p=164560#comment-993795 In reply to janis.

Thanks for noticing.
It’s fixed now.
Regards,
Sara

]]>
By: janis https://randomnerdtutorials.com/esp8266-nodemcu-ota-elegantota-arduino/#comment-993682 Sun, 22 Dec 2024 22:52:21 +0000 https://randomnerdtutorials.com/?p=164560#comment-993682 // Route for root / web page
server.on(“/”, HTTP_GET, [](AsyncWebServerRequest *request){
request->send(200, “text/html”, index_html, processor);
});
need send_P

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-ota-elegantota-arduino/#comment-993013 Fri, 20 Dec 2024 11:13:40 +0000 https://randomnerdtutorials.com/?p=164560#comment-993013 In reply to Ceka.

Hi.
Thanks for letting me know.
It’s fixed now.
Regards,
Sara

]]>
By: Ceka https://randomnerdtutorials.com/esp8266-nodemcu-ota-elegantota-arduino/#comment-992864 Thu, 19 Dec 2024 22:32:11 +0000 https://randomnerdtutorials.com/?p=164560#comment-992864 There is no code in the first code-block in this chapter: “ElegantOTA ESP8266 Basic Example” and the button “View raw code” leads only to the top of the page.

]]>