Okay I've managed to find the problem quickly thanks to both of your input. Basically the content length I was using was completely inappropriate. I was just setting it to a huge value with no relation to the actual length of the body.
It was the kind of thing I was expecting might be the case. I ...
Search found 3 matches
- Mon May 14, 2018 10:12 pm
- Forum: ESP-IDF
- Topic: Sending file from ESP, download in browser.
- Replies: 4
- Views: 8283
- Sun May 13, 2018 5:16 pm
- Forum: ESP-IDF
- Topic: Sending file from ESP, download in browser.
- Replies: 4
- Views: 8283
Sending file from ESP, download in browser.
I'm having trouble sending a file from the ESP acting as a server, to a browser requesting the resource.
I'm using the SSL api and reading a file from an SD card and sending it to a client on request. Had good success sending HTTP header specifying html content which is displayed in browser ...
I'm using the SSL api and reading a file from an SD card and sending it to a client on request. Had good success sending HTTP header specifying html content which is displayed in browser ...
- Wed Apr 25, 2018 10:44 pm
- Forum: ESP-IDF
- Topic: Best way to store large objects on flash?
- Replies: 23
- Views: 42489
Re: Best way to store large objects on flash?
If you only need a single immutable file, theres also the option of letting the build embed it.
Example for a file called "what_time.raw":
/* embedded file */
extern uint8_t file_start[] asm("_binary_what_time_raw_start");
extern uint8_t file_end[] asm("_binary_what_time_raw_end");
component.mk ...
Example for a file called "what_time.raw":
/* embedded file */
extern uint8_t file_start[] asm("_binary_what_time_raw_start");
extern uint8_t file_end[] asm("_binary_what_time_raw_end");
component.mk ...