-
Notifications
You must be signed in to change notification settings - Fork 94
How to download a firmware update without losing WIFI connection? #41
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
Comments
what board? esp8266? |
It's the ESP-12e board from espressif. So not an arduino board with all kinds of extras soldered onto it. I "assumed" ethernet meant i needed an RJ45 shield for wired ethernet? And as i already had a "WiFiClient" instance i used that instead. It seemed logical to me, but it's all based on assumptions. Did i make the wrong assumptions there? I was using the ArduinoHttpClient. Or rather, some lights in my house still are but can't be updated now because of it :( Having said all of this, i have discovered "ESPhttpUpdate" which seems far easier to use and just does exactly what i need it too! It even sends all the headers i could possibly want to have :P (that sure makes it easy to do check on the http server end!) |
https://github.com/jandrassy/ArduinoOTA#esp8266-and-esp32-support this ArduinoOTA library supports the esp boards only because the esp8266/esp32 OTA libraries don't support not native Ethernet. soon the esp8266 Arduino core will support Ethernet (W5000 series and enc28j60) as additional network interface with ESP8266WiFi library (now it has two net interfaces STA and SoftAP). the esp32 has Ethernet peripheral supported by the SDK, but can't work with W5000 and enc28j60. |
Could you clarify that somewhere on the main page? The problem is that, at first glance, it seems to work. |
OTA from IDE is supported and it was tested then. |
It makes little sense if you know how it works. But that's in hindsight. |
the problem is platformio. in Arduino IDE or Eclipse Sloeber you couldn't use this library with esp8266 without deleting the ArduinoOTA library bundled with the esp8266 boards package |
Please mention that on the main readme page. Mention this on the readme is, in my opinion, quite important! I just spend about one and a half day of fixing stuff that wouldn't have been broken if this library would've just told me that it won't work. The rist, again, is that it "looks to be working" but doesn't fully. |
did you read the esp section of the readme? |
You really want me to go over it and provide feedback, it seems.
I interpreted this as my ESP8266 native wifi libraries. So ESP8266WiFi.h which in turn gives me the WiFiClient class. Perhaps this was already the wrong assumption? But then i would really like to know what you mean by
This too gives me the impression that i'm fine.
This made no sense to me. I didn't seem to have the problem you mention (in hindsight apparently due to platform.io, i didn't know it back then). As i had no probably i just considered it to be not relevant.
Here it seemed to again mention that it works on ESP8266 and for the rest didn't seem to be relevant for my IDE so i ignored it. So yes, i did read it. And it very verry veeeeeeerrrrryyyyyy clearly says that ESP8266 works! |
when I wrote this there were no OTA download advanced examples. :-) |
this library was on my request removed from PlatformIO library register |
Hi,
I'm trying to use this advanced example: https://github.com/jandrassy/ArduinoOTA/tree/master/examples/Advanced/OTASketchDownload
I, at first, thought it was working. And - stupidly - updated all my custom lights (about 5 of them) to use this. Then to figure out that the download isn't finishing. It's not because the Wifi antenna apparently gets blocked or something like that? It works if my firmware is small enough, say around 250 KiB. But it's ~300 KiB.
The code in that example is blocking. It downloads the file in one while loop.
Any help or idea on how to make this async would be awesome!
Cheers,
Mark
The text was updated successfully, but these errors were encountered: