Comments on: ESP8266 NodeMCU OTA (Over-the-Air) Updates – AsyncElegantOTA using Arduino IDE https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-arduino/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Thu, 19 Dec 2024 15:16:08 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-arduino/#comment-987581 Fri, 29 Nov 2024 16:15:13 +0000 https://randomnerdtutorials.com/?p=101683#comment-987581 In reply to Luc Hey.

Great.
Thanks for your feedback.
Regards,
Sara

]]>
By: Luc Hey https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-arduino/#comment-987563 Fri, 29 Nov 2024 14:50:08 +0000 https://randomnerdtutorials.com/?p=101683#comment-987563 Ok Sara, i took a deeper look at https://docs.elegantota.pro/getting-started/async-mode
I changed in my sketch all the names from AsyncElegantOTA to ElegantOTA .
Than i had to Enable the Async Mode in the “ElegantOTA.h” file and setting it to 1 :
#define ELEGANTOTA_USE_ASYNC_WEBSERVER 1

Then all was working and because i use Arduino IDE 2.3.2 i did not use the fileupload.
Now i have a toggle button while connected on an static wifi in reconnect mode on an esp8266 NodeMcu.
Thanks for this nice sketch, that was my base code.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-arduino/#comment-987521 Fri, 29 Nov 2024 11:16:01 +0000 https://randomnerdtutorials.com/?p=101683#comment-987521 In reply to Luc Hey.

Hi.
I haven’t tested the new version yet.
They have a demo tutorial here that can be a good starting point: https://github.com/ayushsharma82/ElegantOTA/blob/master/examples/AsyncDemo/AsyncDemo.ino
I’ll try to update this tutorial soon.
Regards,
Sara

]]>
By: Luc Hey https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-arduino/#comment-987350 Thu, 28 Nov 2024 21:12:27 +0000 https://randomnerdtutorials.com/?p=101683#comment-987350 Hello Sara & Rui, i want to test the OTA functionality on my ESP8266 and was looking for the AsyncElegantOTA library. This is now changed in name : ElegantOTA 3.1.6 (from the same autor).

I think that some changes are required in the sketch like:
line 15 #include <AsyncElegantOTA.h>
line 43 AsyncElegantOTA.begin(&server);

Is this correct ?
And are the other Async library’s like ESPAsyncTCP.h and ESPAsyncWebServer.h and :
line 20 AsyncWebServer server(80);
line 39 server.on(“/”, HTTP_GET, [](AsyncWebServerRequest *request) {

still needed ? Or are there other library’s needed ? I have an error : Compilation error: cannot convert ‘AsyncWebServer‘ to ‘ESP8266WebServer

I understand that some things changes over time and it’s difficult to keep the code up-to date.

]]>
By: Michael Heiml https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-arduino/#comment-913698 Wed, 08 May 2024 15:30:49 +0000 https://randomnerdtutorials.com/?p=101683#comment-913698 In reply to Heinz Ruetschi.

Thanks I found your code, for everyone else a little addition: to make the .bin file work with ESP8266 and ElegantOTA LittleFS update, you need to provide a few more parameters in the command prompt. It should look like this:

mklittlefs -c data config.bin -p 256 -b 8192 -s 2072576

where data is the name of the folder with your files, and config.bin is the output name. -p -b -s are needed with those exact values, otherwise the partition is not readable at least on my ESP8266. I have extracted the values from the Arduino 2.x IDE command (for further info on how to use LittleFS upload in Arduino 2.x, read this: https://github.com/earlephilhower/arduino-littlefs-upload)

]]>
By: MUHSIN https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-arduino/#comment-911229 Tue, 30 Apr 2024 08:20:23 +0000 https://randomnerdtutorials.com/?p=101683#comment-911229 Hi, I’m sorry if I miss anything in the explanation but I want to know, can we use OTA in different network between the esp and the PC to upload through OTA?

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-arduino/#comment-905224 Fri, 12 Apr 2024 10:18:43 +0000 https://randomnerdtutorials.com/?p=101683#comment-905224 In reply to Erling Hviid.

Hi.
Thanks for providing that info.
That’s definitely useful.
Regards,
Sara

]]>
By: Erling Hviid https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-arduino/#comment-905076 Thu, 11 Apr 2024 13:12:55 +0000 https://randomnerdtutorials.com/?p=101683#comment-905076 Hello Sara and Rui
Thanks you for your great work and super good tutorials. I implemented this webserver with OTA – it works right away and flawlessly at first . Then i upgraded a program on an esp8266 with 1mS timer interrupt ISR.This ruined the OTA ( it failed) I then implemented the Callback functions https://docs.elegantota.pro/callbacks/ where I disabled the interrupts during OTA process, and enabled the Timer interrupt again after OTA completion. Then OTA works reliably.
Hope this can be help full to someone else.
Thanks
Erling Hviid

]]>
By: iw2fvo https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-arduino/#comment-895284 Wed, 28 Feb 2024 12:51:07 +0000 https://randomnerdtutorials.com/?p=101683#comment-895284 GOOD day to all :
I am using AsyncElegant OTA to remotely load one of my sketch yhat simply control some relays also with alexa. The wifi load works vey well and I get my new sketch working. The problem is that when I include the required line of code relevant to AsyncElegant OTA the IDE gives me an errore on the following line ” AsyncElegantOTA.begin(&server); ”

‘server’ was not declared in this scope; did you mean ‘Server’?

How to overcome this problem please ?
Thanks in advance
Regards

]]>
By: Ed https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-arduino/#comment-884662 Wed, 17 Jan 2024 22:45:04 +0000 https://randomnerdtutorials.com/?p=101683#comment-884662 Just revisiting this excellent tutorial, with a few general remarks (but maybe someone already made those.
I still work with an old version of the library (2.2.7), simply becoz it works for me. Tghere is now 2.2.8 that I think needs an extra line of code in the loop().
Till now I have not been able to upload images to the FSLittle filesystem with AsyncElegantOTA, which is a pity. Not sure if the new library offers more possibilitues.
The library uses the extension /update. This might interfere with some of your webservers with buttons presented in various of your tutiorials, as these also use the /update, so users need to watch out for that, but it is easily adaptable.
Ofcourse it is not that hard to modify the library to use an /OTA extension rather than an /update extension, but changing the sketch is easier

]]>