• 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

AsyncElegantOTA Compile warning

Q&A Forum › Category: ESP32 › AsyncElegantOTA Compile warning
0 Vote Up Vote Down
Steve Fisch asked 3 years ago

I’m including the warning I am getting while using AsyncElegantOTA in one of my sketches.
I just started getting these warnings yesterday, and have re-loaded the AsyncElegantOTA library, and tried my best to see if I had made any changes to libraries or scripts – with the exception of the AyncElegantOTA library. I also updated all updatable libraries.

If you need to see my full sketch, let me know.

As always, many thanks in advance.
Steve

Here are the warnings:

D:\libraries\AsyncElegantOTA\src/AsyncElegantOTA.h:4:2:
warning: #warning AsyncElegantOTA.loop(); is deprecated, please remove it from loop() if defined.
This function will be removed in a future release. [-Wcpp]
#warning AsyncElegantOTA.loop(); is deprecated, please remove it from loop() if defined.
This function will be removed in a future release.

Question Tags: ElegantOTA warning
5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
The library was updated. You simply need to remove the following line from the loop():
AsyncElegantOTA.loop();
Regards,
Sara

0 Vote Up Vote Down
Barry answered 3 years ago

Have a new PC so installing all the things to support my project. I’ve run into this same error message.
However, I do NOT have the offending line in my loop()
There is an #include and   “AsyncElegantOTA.begin(&server);”   There are no other occurrences of “AsyncElegantOTA” in any of the tabs.

 

In file included from D:\ESP32\Matrix_001b\Matrix_001b.ino:23:
C:\Users\iabar\Documents\ESP32\libraries\AsyncElegantOTA-master\src/AsyncElegantOTA.h:4:2: warning: #warning AsyncElegantOTA.loop(); is deprecated, please remove it from loop() if defined. This function will be removed in a future release. [-Wcpp]
#warning AsyncElegantOTA.loop(); is deprecated, please remove it from loop() if defined. This function will be removed in a future release.
^~~~~~~

 

Here the offending line is #23, which is:   #include <AsyncElegantOTA.h>

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

Hi.
Does your code compile regardless of the warning?
That is just a warning message and it shouldn’t interfere with the compiling process.
If the code doesn’t compile there should be another issue.
Regards,
Sara

0 Vote Up Vote Down
Barry answered 3 years ago

The code compiles and runs fine. I agree this is just a warning.

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

Ok.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
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.