Page 1 of 1

f_findnext couldnt search fully files in directory

Posted: Mon Aug 07, 2017 1:41 am
by abcdcadb
Hi all,

On ESP32 platform, I tried to build a SAMBA transferal files app, the source code I employed is at here:

http://members.inode.at/anton.zechner/az/AzSmb.en.htm

I replaced the sysfindnext function on their linux system into f_findnext function on espidf RTOS library, my code works well but it doesn't show fully files in my shared directory (f_findnext coulnt search out somes of files on shared directory).

it seems related to the limitation of hardware?
thanks for any advice

Re: f_findnext couldnt search fully files in directory

Posted: Mon Aug 07, 2017 7:07 am
by ESP_igrr
The implementation of SysFindNext uses readdir_r function, which is supported in IDF. So you don't need to replace that with FATFS f_findnext, i think.

P.S. also make sure you don't use this SMB library in conjunction with WiFi/BT features of the ESP32 for production code (unless you have obtained the commercial license from the author).

Re: f_findnext couldnt search fully files in directory

Posted: Tue Aug 22, 2017 9:43 am
by abcdcadb
ESP_igrr wrote:The implementation of SysFindNext uses readdir_r function, which is supported in IDF. So you don't need to replace that with FATFS f_findnext, i think.

P.S. also make sure you don't use this SMB library in conjunction with WiFi/BT features of the ESP32 for production code (unless you have obtained the commercial license from the author).
Thanks, I fixed it.
That is a limitation the number of files showed from the source I used