Downlaod from HTTPS
Downlaod from HTTPS
Hello Guys,
first of all I should say, that I'm new with ESP32. So sorry if I'm asking stupid questions.
I wanna create a project with my ESP. And the first step is to download a file from server per WiFi and buffer it to ESP.
I read lot of examples, but couldn't find a solution. The best library and example that I've seen was "UDHttp.h."
The problem is, it doesn't download files from HTTPS servers. I tried to change the library(Port and some another things) but didn't success to get any result.
I will be really thankful, if you could help me with that.
Best Regards,
Milad
first of all I should say, that I'm new with ESP32. So sorry if I'm asking stupid questions.
I wanna create a project with my ESP. And the first step is to download a file from server per WiFi and buffer it to ESP.
I read lot of examples, but couldn't find a solution. The best library and example that I've seen was "UDHttp.h."
The problem is, it doesn't download files from HTTPS servers. I tried to change the library(Port and some another things) but didn't success to get any result.
I will be really thankful, if you could help me with that.
Best Regards,
Milad
Re: Downlaod from HTTPS
Does anyone have any idea?
Re: Downlaod from HTTPS
Copy the code in IDF_PATH/components/esp-https_ota, then remove anything working with OTA, and store the data in your own buffer.
- martinayotte
- Posts: 141
- Joined: Fri Nov 13, 2015 4:27 pm
Re: Downlaod from HTTPS
In Arduino-ESP, there is a simple HttpSecureClient library ...
Re: Downlaod from HTTPS
But I don't want to work with WebServer and what I found that OTA works with it.fly135 wrote:Copy the code in IDF_PATH/components/esp-https_ota, then remove anything working with OTA, and store the data in your own buffer.
I want to download a file directly from an HTTPS Link!
Re: Downlaod from HTTPS
Thanks alot, Martin!martinayotte wrote:In Arduino-ESP, there is a simple HttpSecureClient library ...
But how could it help?!
- martinayotte
- Posts: 141
- Joined: Fri Nov 13, 2015 4:27 pm
Re: Downlaod from HTTPS
By using this SecureClient in replacement of plain WifiClient in this Update example :miladgh wrote: But how could it help?!
https://github.com/espressif/arduino-es ... Update.ino
Re: Downlaod from HTTPS
Thanks man!
but when I'm using your example, I get this error:
I didn't change anything and used http.
but when I'm using your example, I get this error:
Code: Select all
Fetching Bin: /milad/media/display/9c/d2/4e/netcom-extra.tft
Got application/octet-stream payload.
Got 1035753 bytes from server
contentLength : 1035753, isValidContentType : 1
Begin OTA. This may take 2 - 5 mins to complete. Things might be quite for a while.. Patience!
Written only : 0/1035753. Retry?
Error Occurred. Error #: 8
Re: Downlaod from HTTPS
I changed the Command to U_SPIFFS in Updater.cpp.
And now I get this error:
:/
And now I get this error:
:/
Code: Select all
Fetching Bin: /milad/media/display/9c/d2/4e/netcom-extra.tft
Got application/octet-stream payload.
Got 1035753 bytes from server
contentLength : 1035753, isValidContentType : 1
Begin OTA. This may take 2 - 5 mins to complete. Things might be quite for a while.. Patience!
Written only : 5497/1035753. Retry?
Error Occurred. Error #: 12
Who is online
Users browsing this forum: Majestic-12 [Bot], TRUEcabbage and 64 guests