Arduino-esp32: AsyncTCP.h: No such file or directory

Created on 9 Sep 2017  路  7Comments  路  Source: espressif/arduino-esp32

I'm trying to compile one project which is for ESP8266 initially but i get this...
could it be a path issue?

src/../lib/ESPAsyncWebServer/src/ESPAsyncWebServer.h:33:22: fatal error: AsyncTCP.h: No such file or directory

Most helpful comment

I think you should get these files from here: https://github.com/me-no-dev/AsyncTCP

All 7 comments

I think you should get these files from here: https://github.com/me-no-dev/AsyncTCP

Great but now an issue with SPIFFS

lib/ESPAsyncWebServer/src/SPIFFSEditor.h:6:20: fatal error: SPIFFS.h: No such file or directory

:(

This is very recent ( few hours ago) @me-no-dev is still adjusting the things to release officially...

Soon everything will work fine =)

@copercini thnx

you can get it going without SPIFFS if you edit one file ;)
comment #include "SPIFFS.h" and remove =SPIFFS from the constructor here. Feel free to substitute with "SD" or "SD_MMC" also

I actually adjusted the code so it no longer requires SPIFFS at all.
To enable the editor, on ESP32 you need to give the FileSystem as first argument:

//SPIFFS
server.addHandler(new SPIFFSEditor(SPIFFS, "user","password"));
//SD
server.addHandler(new SPIFFSEditor(SD, "user","password"));
//SD_MMC
server.addHandler(new SPIFFSEditor(SD_MMC, "user","password"));

@nardev with last git version everything should work fine now =)

Was this page helpful?
0 / 5 - 0 ratings