Search found 605 matches

by mikemoy
Thu Sep 27, 2018 3:48 pm
Forum: General Discussion
Topic: ESP-IDF SPIFFS can't find files on ESP32?
Replies: 18
Views: 25675

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

Opera has a really good debugger. I just starting using it and I like it better.
by mikemoy
Thu Sep 27, 2018 12:44 pm
Forum: General Discussion
Topic: ESP-IDF SPIFFS can't find files on ESP32?
Replies: 18
Views: 25675

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

I wound up using to include the binary web site files in my project instead. IMHO it was a better solution. But I did keep the way we were doing it for reference just in case. Here is what I had in the end. int readFile(char *fname, httpd_req_t *req) { int res; char buf[1024]; FILE *fd = fopen(fname...
by mikemoy
Thu Sep 27, 2018 1:56 am
Forum: General Discussion
Topic: Component Makefiles - Adding source directories
Replies: 2
Views: 3328

Re: Component Makefiles - Adding source directories

Thank you sir, that worked!
by mikemoy
Wed Sep 26, 2018 10:53 pm
Forum: General Discussion
Topic: HTTPD_DEFAULT_CONFIG, overide settings
Replies: 1
Views: 6521

HTTPD_DEFAULT_CONFIG, overide settings

Sorry for such a novice question. In http_server.h it has the following. #define HTTPD_DEFAULT_CONFIG() { \ .task_priority = tskIDLE_PRIORITY+5, \ .stack_size = 4096, \ .server_port = 80, \ .ctrl_port = 32768, \ .max_open_sockets = 7, \ .max_uri_handlers = 8, \ .max_resp_headers = 8, \ .backlog_conn...
by mikemoy
Wed Sep 26, 2018 8:07 pm
Forum: General Discussion
Topic: ESP-IDF SPIFFS can't find files on ESP32?
Replies: 18
Views: 25675

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

I got it working sending large files without crashing. If your still stuck let me know and I send what I have.
by mikemoy
Wed Sep 26, 2018 5:17 pm
Forum: General Discussion
Topic: ESP-IDF SPIFFS can't find files on ESP32?
Replies: 18
Views: 25675

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

I would assume you have the following register handlers in your code (or similar) httpd_register_uri_handler(server, &index_html); httpd_register_uri_handler(server, &favicon_ico); httpd_register_uri_handler(server, &on_off_switch_js); httpd_register_uri_handler(server, &on_off_switch_onload_js); ht...
by mikemoy
Wed Sep 26, 2018 4:00 pm
Forum: General Discussion
Topic: ESP-IDF SPIFFS open file issues
Replies: 6
Views: 8779

Re: ESP-IDF SPIFFS open file issues

Thank you so much that took care of it!
by mikemoy
Wed Sep 26, 2018 3:40 pm
Forum: General Discussion
Topic: ESP-IDF SPIFFS can't find files on ESP32?
Replies: 18
Views: 25675

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

You can't open the files Nope, i get an error. I found that you can embed files into your project. I though this to be a better solution than to upload files, as that would get old if you had to program many devices for production. I started following down this rabbit hole here but now ran into a i...
by mikemoy
Wed Sep 26, 2018 3:37 pm
Forum: General Discussion
Topic: ESP-IDF SPIFFS open file issues
Replies: 6
Views: 8779

Re: ESP-IDF SPIFFS open file issues

Ah.. my problem before was I didn't use "./"
it does not report a version.
Mike@DESKTOP-J24VA57 MINGW32 ~/mkspiffs-0.2.0
$ ./mkspiffs.exe --version

./mkspiffs version:


Mike@DESKTOP-J24VA57 MINGW32 ~/mkspiffs-0.2.0
$
by mikemoy
Wed Sep 26, 2018 2:59 pm
Forum: General Discussion
Topic: Component Makefiles - Adding source directories
Replies: 2
Views: 3328

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