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.
Hi.
The library was updated. You simply need to remove the following line from the loop():
AsyncElegantOTA.loop();
Regards,
Sara
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>
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