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
ESP8266 HTTP download a big file (i need help)
-
- 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
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.
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.
-
- 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 3 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.