Modules | |
Functions | |
Definitions | |
Data Structures | |
For FTP server support you have to include ftplib.h in your application and link ftp.lib - FTP Server Support to your project. The FTP server makes use of the EFS Embedded File System. A usermanagement can be used to restrict file access to users: A user logged in as administrator for example may have read/write access to the Module Configuration File, a guest user will only be allowed to read this file.
The FTP server expects a list of users terminated with 0. Each user is described by a user_type:
Members
Example: configure two users: an administrator and an anonymous user. The administrator is allowed to read and write the module configuration and application boot file, the anonymous user is allowed to read the Module Configuration File only.
This user list must be passed to FTP server initialization function ftp_server_init()
The main FTP server processing is performed by function ftp_server(). Call this function regularly with net_isq() in your main loop: