Page 1 of 2

FTP Server C++

Posted: Wed Mar 14, 2018 10:00 pm
by snahmad75
Hi,

I am looking for C or C++ component for FTP server which suported Datetime stamp, upload/download file.
Create and delete folder.

Is this FTP Server works. It did try. It did not work for me in general. Have you some one used this FTP class on ESP32?

https://github.com/cgmcintyr/esp32-ftp

I need FTP server which work with FatFS C++ class.

Thanks,
Naeem

Re: FTP Server C++

Posted: Fri Mar 16, 2018 10:09 am
by snahmad75
Can anyone answer this thread?

Re: FTP Server C++

Posted: Fri Mar 16, 2018 7:56 pm
by loboris
It is a part of a bigger project, but it may help:

ftp.c
ftp.h

the FreeRTOS task using it

It satisfies all your demands, tested and works well.

Re: FTP Server C++

Posted: Sun Mar 18, 2018 7:49 pm
by snahmad75
Thanks. will try out and let you know results.

Re: FTP Server C++

Posted: Thu Apr 19, 2018 9:08 am
by snahmad75
Hi,

In order to use ftp.c and ftp.h. Do I need to use libCurl( espcurl.h) . Is this separate from C++ libCurl component in ESP32.

ftp.c depends on other headers as well. Do I need these .cpp and .h files as well.


Thanks,
Naeem

Re: FTP Server C++

Posted: Thu Apr 19, 2018 9:34 am
by snahmad75
These ftp depends on

#include "extmod/vfs_native.h"
#include "extmod/vfs.h"

I guess I can try use curl ftp.c and ftp.h also.

Thanks,
Naeem

Re: FTP Server C++

Posted: Thu Apr 19, 2018 10:08 am
by snahmad75
I need to support upgrade/downgrade my encrypted firmware via OTA over wifi using Https.
First update firmware with .bin file and we have some web files( .html, .js. css etc) to get from Http server host these files. We need to grab these files one by one and put into out Flash FATFs drive on ESP32.

Does this sound good idea. In this way I can avoid using FTP. using HTTP get method only.

Thanks,
Naeem

Re: FTP Server C++

Posted: Thu Apr 19, 2018 2:02 pm
by kolban
I think you are asking the exact same question in this thread:

https://esp32.com/viewtopic.php?f=13&t=5136

I think its good practice to ask a question in one thread. If you feel that there needs to be relationship to other threads, consider posting a link to the single thread where the discussion should be held.

Re: FTP Server C++

Posted: Thu Apr 19, 2018 2:31 pm
by snahmad75
ok, sure. you have answer my question to other thread. Thanks. I was in hurry.

Re: FTP Server C++

Posted: Fri Apr 20, 2018 10:40 am
by snahmad75
Hi,

I am trying to use FTP Server

https://github.com/cgmcintyr/esp8266FTP ... 524e316f16

No luck. not compiling for me. It expected File.h header.

Have some one used this C++ class on ESP32.

Thanks,
Naeem