FTP Server C++

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

FTP Server C++

Postby snahmad75 » Wed Mar 14, 2018 10:00 pm

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

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: FTP Server C++

Postby snahmad75 » Fri Mar 16, 2018 10:09 am

Can anyone answer this thread?

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: FTP Server C++

Postby loboris » Fri Mar 16, 2018 7:56 pm

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.

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: FTP Server C++

Postby snahmad75 » Sun Mar 18, 2018 7:49 pm

Thanks. will try out and let you know results.

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: FTP Server C++

Postby snahmad75 » Thu Apr 19, 2018 9:08 am

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

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: FTP Server C++

Postby snahmad75 » Thu Apr 19, 2018 9:34 am

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

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: FTP Server C++

Postby snahmad75 » Thu Apr 19, 2018 10:08 am

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

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: FTP Server C++

Postby kolban » Thu Apr 19, 2018 2:02 pm

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.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: FTP Server C++

Postby snahmad75 » Thu Apr 19, 2018 2:31 pm

ok, sure. you have answer my question to other thread. Thanks. I was in hurry.

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: FTP Server C++

Postby snahmad75 » Fri Apr 20, 2018 10:40 am

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

Who is online

Users browsing this forum: No registered users and 104 guests