summaryrefslogtreecommitdiffstats
path: root/examples/FTPServerSample/LittleFSSample/LittleFSSample.ino
diff options
context:
space:
mode:
authorDaniel Plasa <dplasa@gmail.com>2020-05-31 14:43:26 +0200
committerDaniel Plasa <dplasa@gmail.com>2020-05-31 14:43:26 +0200
commit5094cb3c168ed5c08dbdaa982fe1c096482c5ecc (patch)
tree618593e64517b17b3e2876c12a71e11c6f76d855 /examples/FTPServerSample/LittleFSSample/LittleFSSample.ino
parentdescribe limited use of FuseFS clients (diff)
downloadFTPCLientServer-5094cb3c168ed5c08dbdaa982fe1c096482c5ecc.tar
FTPCLientServer-5094cb3c168ed5c08dbdaa982fe1c096482c5ecc.tar.gz
FTPCLientServer-5094cb3c168ed5c08dbdaa982fe1c096482c5ecc.tar.bz2
FTPCLientServer-5094cb3c168ed5c08dbdaa982fe1c096482c5ecc.tar.lz
FTPCLientServer-5094cb3c168ed5c08dbdaa982fe1c096482c5ecc.tar.xz
FTPCLientServer-5094cb3c168ed5c08dbdaa982fe1c096482c5ecc.tar.zst
FTPCLientServer-5094cb3c168ed5c08dbdaa982fe1c096482c5ecc.zip
Diffstat (limited to '')
-rw-r--r--examples/FTPServerSample/LittleFSSample/LittleFSSample.ino9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/FTPServerSample/LittleFSSample/LittleFSSample.ino b/examples/FTPServerSample/LittleFSSample/LittleFSSample.ino
index 197c730..d30120b 100644
--- a/examples/FTPServerSample/LittleFSSample/LittleFSSample.ino
+++ b/examples/FTPServerSample/LittleFSSample/LittleFSSample.ino
@@ -15,12 +15,11 @@
Daniel Plasa <dplasa@gmail.com>
*/
-#ifdef ESP8266
-#include <ESP8266WiFi.h>
-#elif defined ESP32
-#include <WiFi.h>
+#if (defined ESP32)
+#error "No LittlFS on the ESP32"
#endif
+#include <ESP8266WiFi.h>
#include <LittleFS.h>
#include <FTPServer.h>
@@ -47,7 +46,7 @@ void setup(void)
Serial.printf_P(PSTR("\nConnected to %S, IP address is %s\n"), ssid, WiFi.localIP().toString().c_str());
// setup the ftp server with username and password
- // ports are defined in esFTP.h, default is
+ // ports are defined in FTPCommon.h, default is
// 21 for the control connection
// 50009 for the data connection (passive mode by default)
ftpSrv.begin(F("ftp"), F("ftp")); //username, password for ftp. set ports in ESP8266FtpServer.h (default 21, 50009 for PASV)