Search found 10 matches

by miladgh
Mon Nov 19, 2018 11:20 am
Forum: ESP32 Arduino
Topic: writeToStream doesn't get the whole file's size
Replies: 1
Views: 3265

writeToStream doesn't get the whole file's size

Hi, I'm working on a project and have to download a file from a link and save it to Buffer. I have read a lot about it and I think the answer is to use http.writeToStrem(). So I'm trying it, but there's a problem... It doesn't get the whole file's size. my file is 988.211bytes, but it gets about 150...
by miladgh
Thu Nov 08, 2018 9:10 am
Forum: ESP32 Arduino
Topic: SPIFFS doesn't work anymore
Replies: 2
Views: 4644

Re: SPIFFS doesn't work anymore

I checked the directory and found some files that I created before. I deleted them and it works again!
by miladgh
Wed Nov 07, 2018 4:01 pm
Forum: ESP32 Arduino
Topic: SPIFFS doesn't work anymore
Replies: 2
Views: 4644

SPIFFS doesn't work anymore

Hey guys, I'm working with an ESP32 and need to write some files there. but the problem is, SPIFFS doesn't work anymore. I used SPIFFS_Test from Examples or this code: #include "SPIFFS.h" void setup() { Serial.begin(115200); if (!SPIFFS.begin(true)) { Serial.println("An Error has occurred while moun...
by miladgh
Thu Oct 25, 2018 10:35 am
Forum: General Discussion
Topic: Downlaod from HTTPS
Replies: 8
Views: 11767

Re: Downlaod from HTTPS

I changed the Command to U_SPIFFS in Updater.cpp. And now I get this error: :/ 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 compl...
by miladgh
Wed Oct 24, 2018 9:21 am
Forum: General Discussion
Topic: Downlaod from HTTPS
Replies: 8
Views: 11767

Re: Downlaod from HTTPS

Thanks man! but when I'm using your example, I get this error: 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 migh...
by miladgh
Fri Oct 19, 2018 8:23 am
Forum: General Discussion
Topic: Downlaod from HTTPS
Replies: 8
Views: 11767

Re: Downlaod from HTTPS

martinayotte wrote:In Arduino-ESP, there is a simple HttpSecureClient library ...
Thanks alot, Martin!
But how could it help?!
by miladgh
Fri Oct 19, 2018 8:21 am
Forum: General Discussion
Topic: Downlaod from HTTPS
Replies: 8
Views: 11767

Re: Downlaod from HTTPS

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.
But I don't want to work with WebServer and what I found that OTA works with it.
I want to download a file directly from an HTTPS Link!
by miladgh
Mon Oct 08, 2018 8:05 am
Forum: General Discussion
Topic: Downlaod from HTTPS
Replies: 8
Views: 11767

Re: Downlaod from HTTPS

Does anyone have any idea?
by miladgh
Thu Oct 04, 2018 9:28 am
Forum: General Discussion
Topic: Downlaod from HTTPS
Replies: 8
Views: 11767

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