-
Notifications
You must be signed in to change notification settings - Fork 345
ftpserver
loboris edited this page Jan 3, 2018
·
3 revisions
Ftp server is implemented as ESP32 task and runs in background (when started).
Method | Notes |
---|---|
network.ftp.start([user="micro", password="python", buffsize=1024, timeout=300]) | Start FTP server. The arguments are optional, if not set the dafaults are used. Buffsize sets the transfer buffer size, larger buffer enables faster transfers, but uses more memory. |
network.ftp.pause() | Pause Ftp server. Only when no client is connected. |
network.ftp.resume() | Resume Ftp server. Only when no client is connected. |
network.ftp.stop() | Stop Ftp server. Only when no client is connected. The ESP32 task is terminated, all memory is freed. |
network.ftp.status() | Get the current Ftp server status. The status is returned as tuple of numeric value and string description of Command and Data channels. |
network.ftp.stack() | Get the maximum amount of stack used by the Ftp task. The stack size is set at compile time and can be changed in mpthreadport.h |
- Only one connection to FTP server at the time can be used
- Passive transfer mode must be used
- Only one data connection can be used, make shure your FTP client does not try to establish multiple data connections
- No encription is allowed, configure your client to use plain FTP (insecure). That shouldn't be an issue, you will mostly use FTP server in local network.
Example of FileZilla settings: