Skip to content

Minimal FTP Server that can run on an ESP8266 with MicroPython

Notifications You must be signed in to change notification settings

cpopp/MicroFTPServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

uftpserver

I wanted a simple way of remotely managing files on my ESP8266 so I experimented with this minimal FTP server enough to get file listing, retrieving, and uploading working.

It's a functioning prototype now with a lot of room for improvement but it seems to work fine with the standard mac FTP client and ftp:// access via Chrome.

Check out an alternative FTP server that expanded quite a bit on this prototype here.

Limitations

  • Passive mode only
  • A single data connection at a time
  • Data transfer is assumed to be in binary mode (ascii setting is ignored)
  • Operation blocks the thread
  • No authentication support

What is supported

  • Changing directories (cd/CWD)
  • Directory listing (ls/LIST with no parameters)
  • File retrievals (get/RETR)
  • File uploads (put/STOR)

Future Work

Here are some items I have in mind:

  • non-blocking/callback based so it can run in the background with other scripts
  • refactor the code for encapsulation purposes and to reduce memory use
  • support for more commands and bit more robustness with the current ones

About

Minimal FTP Server that can run on an ESP8266 with MicroPython

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages