Search found 3 matches

by Harri.Renney
Mon May 14, 2018 10:12 pm
Forum: ESP-IDF
Topic: Sending file from ESP, download in browser.
Replies: 4
Views: 7807

Re: Sending file from ESP, download in browser.

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 wa...
by Harri.Renney
Sun May 13, 2018 5:16 pm
Forum: ESP-IDF
Topic: Sending file from ESP, download in browser.
Replies: 4
Views: 7807

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. However...
by Harri.Renney
Wed Apr 25, 2018 10:44 pm
Forum: ESP-IDF
Topic: Best way to store large objects on flash?
Replies: 23
Views: 39449

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: CO...