mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2025-09-28 23:30:55 +02:00
Limit the max open files on fat variant, takes a lot of RAM otherwise (10 are default)
Added missing icon
This commit is contained in:
@@ -157,7 +157,16 @@ void setup(){
|
|||||||
|
|
||||||
MDNS.addService("http","tcp",80);
|
MDNS.addService("http","tcp",80);
|
||||||
|
|
||||||
MYFS.begin();
|
//FS
|
||||||
|
#ifdef USE_FatFS
|
||||||
|
if (MYFS.begin(false,"/ffat",3)) { //limit the RAM usage, bottom line 8kb + 4kb takes per each file, default is 10
|
||||||
|
#else
|
||||||
|
if (MYFS.begin()) {
|
||||||
|
#endif
|
||||||
|
Serial.print(F("FS mounted\n"));
|
||||||
|
} else {
|
||||||
|
Serial.print(F("FS mount failed\n"));
|
||||||
|
}
|
||||||
|
|
||||||
ws.onEvent(onWsEvent);
|
ws.onEvent(onWsEvent);
|
||||||
server.addHandler(&ws);
|
server.addHandler(&ws);
|
||||||
|
BIN
examples/ESP_AsyncFSBrowser/data/ace.ico.gz
Normal file
BIN
examples/ESP_AsyncFSBrowser/data/ace.ico.gz
Normal file
Binary file not shown.
@@ -550,7 +550,11 @@ void setup(){
|
|||||||
Serial.printf("Temp set %+2.1f\n", ee.tempe);
|
Serial.printf("Temp set %+2.1f\n", ee.tempe);
|
||||||
|
|
||||||
//FS
|
//FS
|
||||||
|
#ifdef USE_FatFS
|
||||||
|
if (MYFS.begin(false,"/ffat",3)) { //limit the RAM usage, bottom line 8kb + 4kb takes per each file, default is 10
|
||||||
|
#else
|
||||||
if (MYFS.begin()) {
|
if (MYFS.begin()) {
|
||||||
|
#endif
|
||||||
Serial.print(F("FS mounted\n"));
|
Serial.print(F("FS mounted\n"));
|
||||||
} else {
|
} else {
|
||||||
Serial.print(F("FS mount failed\n"));
|
Serial.print(F("FS mount failed\n"));
|
||||||
|
Reference in New Issue
Block a user