New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v3.0.0 compile error with ESPhttpUpdate #8052
Comments
What exact version of the core does your example compile on? I see nothing like the prototype you're using in the change logs from 2.7.4 to now. It's quite possible the docs got rusty over time, true, but we do have examples in the core that build and run w/the update and supported |
The 2.7.4 release came out on August 2, 2020, meaning the only change to the interface file was in 5987390#diff-9827d55cbab21f79faea204a0d6956a66b5646ab091be0d4677d2c1f640e60b0 |
The example compiles on EVERY version of the core from 2.3.0 to 2.7.4. I have literally used every single version as they were released over the last 5 or so years with zero issues. Today I updated to 3.0.0 (using the Arduino IDE's board manager function) and get the error you see. Going back to 2.7.4 fixed it. I then went to 2.3.0 and that worked, back 3.0.0 and it failed - back to 2.4.0 and that worked - back to 3.0.0 and it failed. So, I am back on 2.7.4 until this issue is resolved. I have to have the OTA function. |
Just copy and paste the above simple example (it's not mine - that came right from the v3.0.0 documentation page) into a new project and run the compiler. Try with the v3.0.0 core and you will see the error, then go install the v2.7.4 core and you will see that it compiles just fine. |
Per 2.7.4's compile warnings, the example used a deprecated in 2.7.4, removed in 3.0 way of accessing httpUpdate. This is as-intended, because there are issues when the connection is not owned by the app itself.
You're going to have to update the application, or stick to the obsolete core versions. |
FWIW, even in verbose mode under the Arduino IDE I do not get this deprecated warning during the compile. |
BTW, you DO get a deprecated warning when using Platform I/O (which I do not use), but there is NO such warning under the Arduino IDE, even in verbose mode. |
Was this issue settled? I stumbled upon the same error with the same code. Then I realized that the signature of
|
[X] This issue complies with the issue POLICY doc.
[X] I have read the documentation at readthedocs and the issue is not addressed there.
[X] I have tested that the issue is present in current master branch (aka latest git).
[X] I have searched the issue tracker for a similar issue.
[ ] If there is a stack dump, I have decoded it.
[X] I have filled out all fields below.
Hardware: ESP-12F
Core Version: v3.0.0 (05/18/2021) - release
Development Env: Arduino IDE
Operating System: Windows|
Module: Nodemcu 1.0 (and others)
Flash Mode: qio
Flash Size: 4MB
lwip Variant: v2 Lower Memory (ALL other options also tested)
Reset Method: nodemcu
Flash Frequency: 40Mhz
CPU Frequency: 80Mhz
Upload Using: SERIAL
Upload Speed: 115200
PROBLEM
Any code using any part of the ESP8266httpUpdate class no longer compiles successfully as of v3.0.0. It works fine with all previous versions. Below is the error, followed by a sketch which is the example given on the current documentation page, found here:
https://arduino-esp8266.readthedocs.io/en/3.0.0/ota_updates/readme.html#http-server
ERROR:
update_error.txt
SKETCH:
The text was updated successfully, but these errors were encountered: