From 3e702dd829d78b0984fdd9bf7dc54e747f63abc6 Mon Sep 17 00:00:00 2001 From: Daniel Plasa Date: Sun, 31 May 2020 00:10:26 +0200 Subject: Give credits to https://github.com/danbicks and his code posted in https://github.com/esp8266/Arduino/issues/1183#issuecomment-634556135 which inspired me to the code of the FTPClient --- FTPClient.h | 18 +++--------------- README.md | 2 +- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/FTPClient.h b/FTPClient.h index bc03c67..ca5cd78 100644 --- a/FTPClient.h +++ b/FTPClient.h @@ -2,8 +2,9 @@ * * MIT license * written by Daniel Plasa: - * 1. split into a plain FTP and a FTPS class to save code space in case only FTP is needed. - * 2. Supply two ways of getting/putting files: + * Inspired by https://github.com/danbicks and his code posted in https://github.com/esp8266/Arduino/issues/1183#issuecomment-634556135 + * + * The Client supports two ways of getting/putting files: * a) blocking, returns only after transfer complete (or error) * b) non-blocking, returns immedeate. call check() for status of process * @@ -111,17 +112,4 @@ protected: bool waitFor(const int16_t respCode, const __FlashStringHelper *errorString = nullptr, uint32_t timeOut = 10000); }; -// basically just the same as FTPClient but has a different connect() method to account for SSL/TLS -// connection stuff -/* -class FTPSClient : public FTPClient -{ -public: - FTPSClient() = default; - -private: - virtual bool connect(); -}; -*/ - #endif // FTP_CLIENT_H diff --git a/README.md b/README.md index 9c98e9b..f110d2b 100644 --- a/README.md +++ b/README.md @@ -84,4 +84,4 @@ ftpClient.handleFTP(); // place this in e.g. loop() ## Notes * I forked the Server from https://github.com/nailbuster/esp8266FTPServer which itself was forked from: https://github.com/gallegojm/Arduino-Ftp-Server/tree/master/FtpServer -* Inspiration for the Client was taken from https://github.com/esp8266/Arduino/issues/1183#issuecomment-634556135 +* Inspiration for the Client was taken from https://github.com/danbicks and his code posted in https://github.com/esp8266/Arduino/issues/1183#issuecomment-634556135 -- cgit v1.2.3