iotappstory / ESP-Library

Software Distribution and Management Over the Air
GNU Lesser General Public License v2.1
124 stars 35 forks source link

Doesn’t work with PlatformIO #167

Closed Valdhor closed 4 years ago

Valdhor commented 4 years ago

Should this work with PlatformIO? When I try to compile the initial application I get “Can’t find FS.h”. I don’t know where to find that library.

CwlBroeders commented 4 years ago

This is the ESP arduino core file system library (it replaces the SPIFFS library). https://github.com/esp8266/Arduino/blob/master/cores/esp8266/FS.h

Valdhor commented 4 years ago

It looks like this is for esp8266 but I have esp32. Is this still correct?

CwlBroeders commented 4 years ago

For ESP32 this should also be present in the core framework. https://github.com/espressif/arduino-esp32/blob/master/libraries/FS/src/FS.h

https://community.platformio.org/t/errors-when-compiling-esp32-code/11421

Valdhor commented 4 years ago

Thanks for that. I will give it a try.

I’m thinking the question is why I need to install that as a separate install? Perhaps an update to the documentation?

Valdhor commented 4 years ago

I do appreciate the quick response.

CwlBroeders commented 4 years ago

The documentation is (for now) mainly tailored to the arduino IDE, aswell as being slightly outdated.

Valdhor commented 4 years ago

Figured out you have to have lib_deps in the right order.