diff options
author | Daniel Plasa <dplasa@gmail.com> | 2020-05-26 05:02:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 05:02:01 +0200 |
commit | 57ce31f31d8b93a6ac132eb62ce8bed9183b7135 (patch) | |
tree | 1b2f5f39dc5772023a41bda897000f0d908cbb8c | |
parent | fix typo (diff) | |
download | FTPCLientServer-57ce31f31d8b93a6ac132eb62ce8bed9183b7135.tar FTPCLientServer-57ce31f31d8b93a6ac132eb62ce8bed9183b7135.tar.gz FTPCLientServer-57ce31f31d8b93a6ac132eb62ce8bed9183b7135.tar.bz2 FTPCLientServer-57ce31f31d8b93a6ac132eb62ce8bed9183b7135.tar.lz FTPCLientServer-57ce31f31d8b93a6ac132eb62ce8bed9183b7135.tar.xz FTPCLientServer-57ce31f31d8b93a6ac132eb62ce8bed9183b7135.tar.zst FTPCLientServer-57ce31f31d8b93a6ac132eb62ce8bed9183b7135.zip |
-rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -22,19 +22,19 @@ Select the desired FS via the contructor #include <espFTPServer.h> #include <LittleFS.h> -espFTPServer ftpServer(LittleFS); // construct with LittleFS +FtpServer ftpSrv(LittleFS); // construct with LittleFS // or -espFTPServer ftpServer(SPIFFS); // construct with SPIFFS if you need to for backward compatibility +FtpServer ftpSrv(SPIFFS); // construct with SPIFFS if you need to for backward compatibility ``` ### Configure username/password ```cpp -ftpServer.begin("username", "password"); +ftpSrv.begin("username", "password"); ``` ### Handle by calling frequently ```cpp -ftpServer.handleFtp(); // place this in e.g. loop() +ftpSrv.handleFTP(); // place this in e.g. loop() ``` |