• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ElegantOTA being deprecated – future proofing?

Q&A Forum › Category: ESP8266 › ElegantOTA being deprecated – future proofing?
0 Vote Up Vote Down
Roger Wilson asked 2 years ago

hi Sara
I saw your answer 12 months ago to ignore the compiler warning about ElegantOTA being deprecated (” #warning AsyncElegantOTA.loop(); is deprecated, please remove it from loop() if defined. This function will be removed in a future release.” However while this still compiles and works now, I am wondering if this may present problems for OTA firmware updates in the future if/when it is not supported any longer, and if there is any equally suitable alternative? I presume not since your tutorials continue to recommend it and it still works, currently at least. If it fails I will have to dismantle my device to access the board I am running the webserver on to load any updates if needed. Not a huge problem I guess but just wanted to ask what thoughts you have about this. 

Question Tags: elegantOTA
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
You just need to remove the following line from the loop():
AsyncElegantOTA.loop();
Everything else remains the same and will work the same way. You can continue using the same library.
 
I hope this is clear.
Let me know if you have more questions.
 
Regards,
Sara
 

0 Vote Up Vote Down
Roger Wilson answered 2 years ago

Hi Sara,
I don’t have AsyncElegantOTA.loop(); in my loop{}. I only have the 3 lines of code needed as described in your tutorial and none of these are in the loop{}.
The OTA update is working fine for me in my firmware sketch now. I was just concerned that if VS Code does remove support for the ElegantOTA library in their compiler sometime soon, which they seem to say they are going to do, then I would no longer be able to compile and upload new firmware with the ElegantOTA lines in my firmware update sketch and I would lose this feature. Is that not so?

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

No.
I don’t think it will be like that.
That message is just a warning that currently you still can use the AsyncElegantOTA.loop() function, but that they will remove it in the future.
The elegantOTA will continue working as expected, but after some time, you won’t be able to use the AsyncElegant.loop() instruction. However, because you’re not using it anyway, you don’t need to worry.
 
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.