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.
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
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?
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