From 49bde8258108057cff01dcef0c36d640373e2e79 Mon Sep 17 00:00:00 2001 From: Daniel Plasa Date: Tue, 26 May 2020 18:30:45 +0200 Subject: use ESP.getMaxFreeBlockSize() / 2 as transfer buffer size for RETR use 2048 bytes for STOR --- examples/LittleFSSample/LittleFSSample.ino | 7 +++---- examples/SPIFFSSample/SPIFFSSample.ino | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'examples') diff --git a/examples/LittleFSSample/LittleFSSample.ino b/examples/LittleFSSample/LittleFSSample.ino index b6bfdd6..b5dc797 100644 --- a/examples/LittleFSSample/LittleFSSample.ino +++ b/examples/LittleFSSample/LittleFSSample.ino @@ -16,17 +16,16 @@ */ #ifdef ESP8266 -#include #include #elif defined ESP32 #include -#include #endif +#include #include -const char *ssid PROGMEM = ""; -const char *password PROGMEM = ""; +const char *ssid PROGMEM = "YOUR_SSID"; +const char *password PROGMEM = "YOUR_PASS"; // tell the FtpServer to use LittleFS FtpServer ftpSrv(LittleFS); diff --git a/examples/SPIFFSSample/SPIFFSSample.ino b/examples/SPIFFSSample/SPIFFSSample.ino index 6438afe..dce703c 100644 --- a/examples/SPIFFSSample/SPIFFSSample.ino +++ b/examples/SPIFFSSample/SPIFFSSample.ino @@ -25,8 +25,8 @@ #include -const char *ssid PROGMEM = ""; -const char *password PROGMEM = ""; +const char *ssid PROGMEM = "YOUR_SSID"; +const char *password PROGMEM = "YOUR_PASS"; // Since SPIFFS is becoming deprecated but might still be in // use in your Projects, tell the FtpServer to use SPIFFS -- cgit v1.2.3