Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No FTP connection to raspi pico w #64

Open
croeh opened this issue Jul 18, 2024 · 0 comments
Open

No FTP connection to raspi pico w #64

croeh opened this issue Jul 18, 2024 · 0 comments

Comments

@croeh
Copy link

croeh commented Jul 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant