robo8080 / esp32_ftpserver_sd Goto Github PK
View Code? Open in Web Editor NEWESP32 FTP Server
License: GNU Lesser General Public License v3.0
ESP32 FTP Server
License: GNU Lesser General Public License v3.0
Hi, this is the first issue that I present on GitHub, normally I'm able to troubleshoot everything just by reading others people problems, but in this specific case I wasn't lucky.
I'm building a under water data-logger that is submerged most of the time, only out of the water to retrieve data and charge up the battery.
Was a easier way to retrieve the data from de device I opted by using and ESP32 and program it to be a FTP server, thus using FileZilla the download the files.
It connects great using the code with miner changes, I'm able to upload files to the SD card through FileZilla, but I cannot download or delete files.
The error code is: 550 File oo.txt not found
The most strange situation is the line names and directory that apear in FileZilla on the FPT-Server are incomplete, buy that I mean that the file I was previously trying to download is not oo.txt but foo.txt.
I'm not a programmer, mostly a nooby. I do it on my free time.
The code is mostly unchanged:
#include <WiFi.h>
#include <WiFiClient.h>
#include "ESP32FtpServer.h"
#define SD_CS 5
const char* ssid = "OCTOPETALA_B";
const char* password = "Octopetala2022";
FtpServer ftpSrv; //set #define FTP_DEBUG in ESP32FtpServer.h to see ftp verbose on serial
void setup(void){
Serial.begin(115200);
WiFi.begin(ssid, password);
Serial.println("");
// Wait for connection
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.print("Connected to ");
Serial.println(ssid);
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
/////FTP Setup, ensure SD is started before ftp; /////////
if (SD.begin(SD_CS)) {
Serial.println("SD opened!");
ftpSrv.begin("esp32","esp32"); //username, password for ftp. set ports in ESP32FtpServer.h (default 21, 50009 for PASV)
}
}
void loop(void){
ftpSrv.handleFTP(); //make sure in loop you call handleFTP()!!
}
Thank you in advance, any help is greatly appreciated
When I access the FTP server, the first character of every file name is missing. eg/ a File named "Example.txt" displays as "xample.txt" in windows explorer. I have the same issue in FIleZilla.
FTPサーバーにアクセスする時、全てのファイル名は一文字目が抜けています。例えば 「Example.txt」のファイルがあるとすると、表示されるのは「xample.txt」です。ExplorerとFileZilla 両方で確認しましたが、問題が同じでした。
Is there a way to also create the folder when uploading a complete folder structure with files in it, instead of flatten everything and saving just the containing files?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.