Search found 606 matches

by mikemoy
Wed Sep 26, 2018 2:59 pm
Forum: General Discussion
Topic: Component Makefiles - Adding source directories
Replies: 2
Views: 3330

Component Makefiles - Adding source directories

I created a test.txt file and included it in my root directory. In component.mk i have: COMPONENT_EMBED_FILES := test.txt This compiles fine with no issues. I want to put my files in a subdirectory. accoding to the docs, i need to add "COMPONENT_SRCDIRS. https://docs.espressif.com/projects/esp-idf/e...
by mikemoy
Wed Sep 26, 2018 2:41 pm
Forum: General Discussion
Topic: ESP-IDF SPIFFS open file issues
Replies: 6
Views: 8786

Re: ESP-IDF SPIFFS open file issues

Thanks, but i can't do that as I am on Windows using mingw32 terminal
by mikemoy
Wed Sep 26, 2018 1:34 pm
Forum: General Discussion
Topic: ESP-IDF SPIFFS can't find files on ESP32?
Replies: 18
Views: 25678

Re: ESP-IDF SPIFFS can't find files on ESP32?

Thanks, I have seen that. For some reason even though its printing the directory, I cannot open files yet for reading.
by mikemoy
Wed Sep 26, 2018 1:25 pm
Forum: General Discussion
Topic: ESP-IDF SPIFFS open file issues
Replies: 6
Views: 8786

ESP-IDF SPIFFS open file issues

I have been pulling my hair out trying to figure out how to upload files, and open them for reading. I created a simple test for this, when the app first runs it says . W (302) SPIFFS: mount failed, -10025. formatting... which is what I would expect. After its done formatting I reboot, and it says: ...
by mikemoy
Wed Sep 26, 2018 12:10 pm
Forum: General Discussion
Topic: ESP-IDF SPIFFS can't find files on ESP32?
Replies: 18
Views: 25678

Re: ESP-IDF SPIFFS can't find files on ESP32?

Well, i spoke too soon. Though it lists the files and directories just fine. I can open a file without error, but when i try fread, i get an error. Also, I found out that you have to (enable) long filename support: → Component config → FAT Filesystem support → Long filename support Then you can sele...
by mikemoy
Wed Sep 26, 2018 11:09 am
Forum: General Discussion
Topic: ESP-IDF SPIFFS can't find files on ESP32?
Replies: 18
Views: 25678

Re: ESP-IDF SPIFFS can't find files on ESP32?

I got this working last night. There is allot the docs assume you already know :roll: I am still honing in values but this should get you started as well. #1) create a "partitions.csv" file in your project folder. This is what I have in there. # Name, Type, SubType, Offset, Size, Flags # Note: if yo...
by mikemoy
Tue Sep 25, 2018 10:40 pm
Forum: General Discussion
Topic: ESP-IDF SPIFFS can't find files on ESP32?
Replies: 18
Views: 25678

Re: ESP-IDF SPIFFS can't find files on ESP32?

Did you ever find a solution to this ?
by mikemoy
Tue Sep 25, 2018 4:36 pm
Forum: General Discussion
Topic: api-reference HTTP SERVER help
Replies: 5
Views: 13640

Re: api-reference HTTP SERVER help

@ chegewara, thanks.

I got so overwhelmed that i just didn't take the time to read more.
by mikemoy
Tue Sep 25, 2018 1:24 pm
Forum: General Discussion
Topic: api-reference HTTP SERVER help
Replies: 5
Views: 13640

Re: api-reference HTTP SERVER help

But where do we tell it the Response code (I.E., 200 OK) and Content type (I.E., text/html) at ?
by mikemoy
Mon Sep 24, 2018 9:47 am
Forum: General Discussion
Topic: api-reference HTTP SERVER help
Replies: 5
Views: 13640

api-reference HTTP SERVER help

I was reading the api-reference for HTTP SERVER here: https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/protocols/http_server.html I tried the example in \esp-idf\examples\protocols\http_server\simple, and it works just fine. Yet its all clear as mud to me. I added a handler to cat...