Does ESP32 provide samba support at IDF?

anghockleong501
Posts: 6
Joined: Thu Sep 05, 2019 2:49 am

Does ESP32 provide samba support at IDF?

Postby anghockleong501 » Tue Sep 24, 2019 6:45 am

Hi Sir/Madam/Miss,
From old source code of a old project, I found IDF library components has samba source code. There is compilation error has for this samba source code, other code is able to compile. The unknown samba source code is at file name smbserver.tar.gz and be attached to this email.

The error is below:
CXX build/smbserver/src/SystemFreeRTOS.o
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp: In function 'unsigned char* SysOpenEx(const char*, unsigned int, int*)':
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp:1715:13: warning: unused variable 'sStat' [-Wunused-variable]
FILINFO sStat;
^
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp: In function 'SysPos SysSeekEx(SysFile, SysPos, int)':
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp:1866:9: warning: unused variable 'iPos' [-Wunused-variable]
SysPos iPos;
^
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp: In function 'SysPos SysTellEx(SysFile)':
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp:1909:9: warning: unused variable 'iPos' [-Wunused-variable]
SysPos iPos;
^
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp: In function 'unsigned int* SysFindFirstEx(const char*, SysFindStruct*, int*)':
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp:2511:48: error: 'struct FILINFO' has no member named 'altname'
strcpy(pFind->cShortName,(const char*)sEntry.altname);
^
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp: In function 'int SysFindNext(SysFind, SysFindStruct*)':
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp:2574:47: error: 'struct FILINFO' has no member named 'altname'
strcpy(pFind->cShortName,(const char*)sEntry.altname);
^
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp: In function 'int SysGetVolumeInfo(const char*, SysVolumeInfo*, int)':
/home/ubuntu/esp_3.3/esp-idf/components/smbserver/src/SystemFreeRTOS.cpp:2890:31: error: '_MAX_SS' was not declared in this scope
pInfo->dwBytesPerSector = _MAX_SS;
^
make[1]: *** [src/SystemFreeRTOS.o] Error 1
make: *** [component-smbserver-build] Error 2
Questions:
1. Does ESP32 provide samba source code support at IDF?
2. If yes, please advise to solve the compilation.
3. If no, do you suspect where is the source code come from?
I search through internet, can not find the resource of this source code. Free RTOS and https://github.com/samba-team/samba also do not have.


Thank you.

Regards,
HL Ang
Attachments
smbserver.tar.gz
The unknown samba source code is at file name smbserver.tar.gz
(848.62 KiB) Downloaded 581 times

anghockleong501
Posts: 6
Joined: Thu Sep 05, 2019 2:49 am

Re: Does ESP32 provide samba support at IDF?

Postby anghockleong501 » Wed Sep 25, 2019 6:18 am

Hi ESP32 Engineers,
I think I found the source of this source code.
It should old version from http://members.inode.at/anton.zechner/az/ .
I will study how to compile it.

You may close this post.
Thank you.

nopnop2002
Posts: 112
Joined: Thu Oct 03, 2019 10:52 pm
Contact:

Re: Does ESP32 provide samba support at IDF?

Postby nopnop2002 » Tue May 25, 2021 8:25 am

Yes.
You can access Windows shared folder from esp32.

https://github.com/nopnop2002/esp-idf-smb-client

Who is online

Users browsing this forum: No registered users and 101 guests