3

I know to write data on Arduino could be done by monitoring Serial interface then write the output data to text file. Previously asked in this thread: How to write data to a text file on Arduino?

The text file could be save on SD card or SPIFFS ESP file system (SPIFFS: Writing a file).

But how to send the text file from ESP32 to FTP server?

Is it possible to directly write the text file to FTP server with wifi connection?

Tried FTP example from Arduino Playground seems doesn't work on ESP32, the Arduino IDE 1.8.7 gives me a bunch of errors.

Compiler errors

Tried to Google entire internet, didn't found anything. There is many FTP Server source code example for ESP32 but nothing about ESP32 as FTP client.

Please help.

4
  • you didn't change the Playground code from Ethernet library to ESP32 WiFi library?! Commented Dec 2, 2018 at 9:43
  • Tried to change the library to suit with the ESP32 but failed, the Arduino IDE compiler still gave me tons of errors. I am not real expert programmer, just copy & paste programmer. Commented Dec 2, 2018 at 13:21
  • Finally found working FTP client code for ESP32, partially answer my own question above. The working ESP32 FTP client code can be found in here: How to write some string into text file? Commented Dec 2, 2018 at 20:07
  • 1
    The final answer to the question is a dead link. But I wrote a small and simple library to write textfiles or images via FTP some time ago to log the data of my temperature sensors. I wrote a small example with a .ino file on how to use it for textfiles. I kept this very basic so maybe it helps. You can find it here: ESP32_FTPClient Commented Jul 3, 2019 at 8:03

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.