Replies: 2 comments 1 reply
-
Both of your "issues" were explained and closed. No one was "deleted" - see https://github.com/esp8266/Arduino/issues?q=is%3Aissue+is%3Aclosed ... |
Beta Was this translation helpful? Give feedback.
-
ESP8266httpUpdate is relying in ESP8266HttpClient. This however does not remove ESP8266httpUpdate nor ESP8266HttpClient from the picture. Your snippet can be updated as follow: void setup() {
WiFiClient client;
t_httpUpdate_return ret = ESPhttpUpdate.update(client, "http://www.arduino.cc/3p_updates/IoT1172.bin");
} You can also go and read the examples that are supposed to always be compiling and working. There is also an example using TLS in the same directory. Thank you to make us realise that we forgot to remove dead code linked to the previous API. |
Beta Was this translation helpful? Give feedback.
-
I have posted the same information twice (with the 2nd time even more detailed, although it is not necessary) about the problem with core v3.0.0 has with compiling ANYTHING that uses ESPhttpUpdate in it, yet my reports are being deleted without any notice or explanation. Almost like this problem is being swept under the rug (which I can't believe is the case).
I have chatted today with several other developers who have the exact same problem when switching to core v3.0.0, so it's not just me and my half a dozen different development machines (on different platforms) that has the issue. This is a REAL issue with the v3.0.0 core - and there is no mention of this problem ANYWHERE in the v3.0.0 release notes.
Problem Description
I have used every revision of the ESP8266 core (starting with v2.3.0) with the same project code in numerous commercial applications. All of these applications use the over-air update capability via ESPhttpUpdate. When updating to v3.0.0 of the core (through the Arduino IDE's board manager), I find that NONE of my applications will compile due to an error with anything that involves ESPhttpUpdate. I used the example code found in the core's OTA documentation to base my code on, and those examples also do not compile under v3.0.0 (but do compile with any of the previous core versions - I tested them all!) See the simple and advanced updater section here: https://arduino-esp8266.readthedocs.io/en/latest/ota_updates/readme.html#http-server
So, again anything that attempts to use any part of the ESPhttpUpdate class generates an error under the v3.0.0 core.
Error
no matching function for call to 'ESP8266HTTPUpdate::update(const char [46])'
To easily replicate this error, drop this super simple sketch into your Arduino IDE and try to compile it:
If you use the board manager and switch back and forth between core v3.0.0 and any other version you will see that all earlier versions compile just fine, and v3.0.0 generates the same error shown above. I have tested this on multiple Arduino IDE installations on Windows, Mac, and even Linux (RPi4 mini computer), all with the exact same results. I did not try different Arduino IDE versions. I am using v1.8.13 on all of my development setups.
I also tried to use the syntax shown in the documentation example - using a URL, port, and file. I have been using the single URL method for years now with zero issues. But for fun, I tried that as well with a similar compiler fail. Something has apparently changed that has broken the ESPhttpUpdate class.
I have looked all over the v3.0.0 core info and I can't find anything that states that the ESPhttpUpdate class was removed, renamed, etc. Does anyone know why my Issue reports would be repeatedly deleted?
Beta Was this translation helpful? Give feedback.
All reactions