Search found 4 matches

by hasukuma
Sun Nov 26, 2023 7:12 pm
Forum: ESP-IDF
Topic: How to incorporate ESP32-CAM Driver into a project?
Replies: 1
Views: 2201

How to incorporate ESP32-CAM Driver into a project?

I see that the following driver was developed by Espressif to use ESP32-CAM in esp-idf: https://github.com/espressif/esp32-camera However, how do we integrate this into a project? Where should these files be copied? Should they be copied to the application folder? Is there documentation on how these...
by hasukuma
Tue Jul 11, 2023 12:54 pm
Forum: ESP-IDF
Topic: How to implement MakeSureDirectoryPathExists() in esp-idf?
Replies: 3
Views: 865

Re: How to implement MakeSureDirectoryPathExists() in esp-idf?

Modified the code to call mkdir only if the directory does not exist. void ESPApp::MakesureDirectoryPathExists(char *filePath) { char *directory = filePath; filePath++; // Skip the leading path delimiter while (*filePath && *filePath != '/') filePath++; // skip mountpoint while (*filePath) { if (*fi...
by hasukuma
Tue Jul 11, 2023 12:06 pm
Forum: ESP-IDF
Topic: How to implement MakeSureDirectoryPathExists() in esp-idf?
Replies: 3
Views: 865

Re: How to implement MakeSureDirectoryPathExists() in esp-idf?

Ok... this is what I came up with. I just got mkdir() working as expected including the /sdcard mount point in the directory path. void MyESPApp::MakesureDirectoryPathExists(char *filePath) { char *fullPath = filePath; filePath++; // Skip the leading path delimiter while (*filePath && *filePath != '...
by hasukuma
Tue Jul 11, 2023 4:05 am
Forum: ESP-IDF
Topic: How to implement MakeSureDirectoryPathExists() in esp-idf?
Replies: 3
Views: 865

How to implement MakeSureDirectoryPathExists() in esp-idf?

Hello there! I just started a serious hobby project with ESP32 using esp-idf. This project uses SD Card for storing various data points that are organized in nested directories, and I would like to write a method similar to MakeSureDirectoryPathExists(). Basically I am looking for a function that wi...