SimpleFTPServer
SimpleFTPServer copied to clipboard
No FTP connection to raspi pico w
Hello, I try to connect a "Raspi PICO W" via FileZilla without TLS (only use plain FTP) and get the following message:
Status: Connecting to 192.168.1.200:21... Status: Connection established, waiting for welcome message... Response: 220 --- Welcome to Simply FTP server --- Command: AUTH TLS Response: 220 --- By Renzo Mischianti --- Status: Initializing TLS... Response: 220 -- Version 2.1.8 (2024-07-17) -- Error: GnuTLS error -15: An unexpected TLS packet was received. Status: Connection attempt failed with "ECONNABORTED - Connection aborted". Error: Could not connect to server
I minimized your "Welcome" message by comment out the additional "220 ---" command lines. see below
void FtpServer::clientConnected() { DEBUG_PRINTLN( F(" Client connected!") ); client.print(F("220 --- ")); client.print(welcomeMessage); client.println(F(" ---")); //client.println(F("220 --- By Renzo Mischianti ---")); //client.print(F("220 -- Version ")); client.print(FTP_SERVER_VERSION); client.println(F(" --")); iCL = 0; if (FtpServer::_callback) { FtpServer::_callback(FTP_CONNECT, free(), capacity()); }
}
Now it is running like expected
Status: Connecting to 192.168.1.200:21... Status: Connection established, waiting for welcome message... Status: Insecure server, it does not support FTP over TLS. Status: Logged in Status: Retrieving directory listing... Status: Directory listing of "/" successful
I'm sure that your code is in general working. I just wondering why it is not working in my environment. Do you have an idea?
Kind regards, Carsten