Comments (7)
I didn't write a question, my comment earlier was a suggestion aiming to help you to understand how your server behaves. After knowing how your server behaves, you can work on implementing the solution for it.
If you search for the keyword "Offline" under issues, you will find few other users mentioned different problems and different solutions.
The library is intended to run on a less powerfull CPU then compared to your PC, it also have a lot less resources and features, it is not comparable.
from esp32_ftpclient.
ok, I found 'one' solution:
Before every InitFile or similiar I need to add
ftp.OpenConnection();
Now everything works!
Ok, I need also to change the folder from root to /working folder ftp.ChangeWorkDir("/working folder");
every time.
Strange. But it works!
from esp32_ftpclient.
Hi Idab,
nice library to save my bme280 logfiles from my esp32 device to my NAS system.
Had the same problem (Bad PASV Answer Connection closed .. ) as 3Dietrich when transfering the second log-file.
Solution is the same as 3Dietrich stated.
I followed the hint from 3Dietrich , now it works.
I keep the current workingDirPath in a static and call openConnectionAndChangeWorkingDir () right before each InitFile() call.
static String mWorkingDirPath = "";
void setWorkingDirPath(String pWorkingDirPath){
Serial.println("my_ftpHelper::setWorkingDirPath: " + pWorkingDirPath);
mWorkingDirPath = pWorkingDirPath;
}
String getWorkingDirPath(){
return mWorkingDirPath;
}
String getBaseWorkingDirPath(){
String result = "/full_path_of_base_directory_on_ftpserver/" ;
return result;
}
boolean openConnectionAndChangeWorkingDir (){
boolean result = false;
ftp.OpenConnection();
Serial.println ("my_ftphelper::openConnectionAndChangeWorkingDir-> try to change working dir to: " + mWorkingDirPath);
ftp.ChangeWorkDir(getWorkingDirPath().c_str());
if (ftp.isConnected()) {
Serial.println("CWD set to done : " + mWorkingDirPath);
result = true;
}
return result;
}```
from esp32_ftpclient.
try to install a FTP Client like FileZilla, enabled the detailed log and inspect how your server behaves.
from esp32_ftpclient.
If this Lib is for using ESP32 as Client, why I should use FileZilla? I used Finder, Cyberduck, NimbleCommander and VSCode (on MacOS) and works ok, no errors using this clients. But I want to use ESP32 this is why I tried the Arduino ESP32_FTPClient and I get no working connection when I use ESP32 with ESP32_FTPClient. At least it outputs some Errors - but this is not detailed enough? I really don't get your question.
from esp32_ftpclient.
in FileZilla I get on PASV this response:
2021-09-08 13:28:48 39435 1 Command: PASV
2021-09-08 13:28:48 39435 1 Response: 227 Entering Passive Mode (192,168,0,1,187,98)
What is bad in this response?
from esp32_ftpclient.
It does not seem to be a bad answer, but in order to replicate the problem I would recommend manual sending all the commands included on the ESP32 log shared earlier.
from esp32_ftpclient.
Related Issues (20)
- FTP error: Offline HOT 5
- Unknown Commands HOT 7
- Sending CSV files From SD card to FTP Server HOT 1
- Server does not seem to like change directory command HOT 2
- Sending File format to ftp HOT 2
- FTP error: offline HOT 5
- FTP Offline HOT 2
- send MLSD -> FTP error: 500 unknown command. vsfptd HOT 2
- How do I properly close the connection using this library? HOT 3
- myPhoto.png or myphoto.png in example download_file.ino? HOT 7
- Esp32 resets wen data is sennding HOT 1
- Parametric management of FTP parameters HOT 6
- Wifi by smartphone HotSpot HOT 1
- FTP PORT HOT 1
- FTP PORT HOT 1
- FTP PORT HOT 1
- FTP PORT HOT 1
- Upload image from SD-CARD HOT 10
- Upload image from SD-CARD HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32_ftpclient.