ESP8266 HTTP download a big file (i need help)

richard_zhang
Posts: 3
Joined: Mon Mar 06, 2017 6:23 pm

ESP8266 HTTP download a big file (i need help)

Postby richard_zhang » Mon Mar 06, 2017 6:46 pm

when i developed the esp8266 to download a big file(>5KB)used http ,it will be fail .i watch my code which i download from net,it define a buff:#define buff_size_max 5000. This is the reason , when i download a big file will fail.The core's sram available is 40KB,So Only define bigger buff is not a good method.
My question:1.how to solve this problem
2.i need the sample code that download a big file
Thanks, i am waiting your reply

User avatar
pratik
Posts: 416
Joined: Wed Jun 29, 2016 7:17 pm
Location: India
Contact:

Re: ESP8266 HTTP download a big file (i need help)

Postby pratik » Wed Mar 08, 2017 3:26 pm

I'm not sure I understand your question.
Which firmware/environment are you using? RTOS SDK, nonOS SDK or AT firmware?

The internal RAM is low on ESP8266, just like any other embedded platform. So if you download a rather large file, you will need to store it somewhere unless you just need one portion of the file at a time. Typically you can download and store 20kB files in RAM easily in nonOS SDK.
Regards,
Pratik Panda
Website: http://www.PratikPanda.com

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):
http://www.iot-bits.com

richard_zhang
Posts: 3
Joined: Mon Mar 06, 2017 6:23 pm

Re: ESP8266 HTTP download a big file (i need help)

Postby richard_zhang » Wed Mar 08, 2017 5:21 pm

pratik wrote:I'm not sure I understand your question.
Which firmware/environment are you using? RTOS SDK, nonOS SDK or AT firmware?

The internal RAM is low on ESP8266, just like any other embedded platform. So if you download a rather large file, you will need to store it somewhere unless you just need one portion of the file at a time. Typically you can download and store 20kB files in RAM easily in nonOS SDK.


Thanks for your reply.
The firmware i used is nonOS SDK ,my esp8266 communicate with my another MCU by UART,So i want to download a file(music file),then print by uart.Another MCU will get this file.
I do not know the way that how to download file and print by uart.

Who is online

Users browsing this forum: No registered users and 1 guest