esp8266FTPServer
esp8266FTPServer copied to clipboard
Does not work with ESPAsyncWebServer
Hi, I would like to use the ftp server, but I am using ESPAsyncWebServer. The ftp tries to connect but then stops and does not do anything or issues a random error (username, password or something else).
The ESPAsyncWebServer does not use server.handleClient(); in the loop(). Do have any idea how can be done so that both work together?
I doubt it would work with ASyncWebServer. Don't know if you can mix both types in the same project.
Are you sure you put ftpServer.handleFTP(); in your loop?
if you want checkout my AsyncWebServer project that has integrated FileBrowser(upload/delete to spiffs)... doesn't use ftp though. https://github.com/nailbuster/myWebServerAsync
Yes, I have the ftpSrv.handleFTP(); My goal is to get data out SPIFFS.
Try out my WebServerProject.... Once started you just go to http://192.168.1.xx/browse that will bring up an html SPIFFs browser/upload/download/delete
For me it works, but on heavy traffic there will be multiple retries. The same with normal WiFi client. Rewriting WiFi client to Async client should not be such a big job.... Let's see....
An update: I have been doing some experiments using ESPAsyncTCP module (TCP part of ESPAsyncWebServer) and have it operational including login and first directory listing. Conclusion so far: too much structural changes are needed so far. As result I don't see an option to create 1 version that can easily serve both, without restructuring the whole code into separate control, data and event handler. I will need verify some findings and will update here on that.
Update: Started over with another concept. Might be interesting... Keep you posted.