Open maxbrito500 opened 1 year ago
Hi, I'm not using PlatformIO but maybe it has to do with the include path. I have a libraries folder where my libs are located and with a path set in config like this: https://github.com/jbilander/ESP32-FileServer/blob/main/.vscode/c_cpp_properties.json#L8
You can see this code where I use the FTP-library from another project: https://github.com/jbilander/ESP32-FileServer/blob/main/ESP32-FileServer.ino
good luck
Hello Jorgen, thank you for the quick reply.
It seems to be related to the file variable itself not being declared somewhere on the code.
In case it helps, I'm adding the FTP code on this project: https://github.com/radio3-network/B3OS/blob/7083b5784b440432993f84c3ddf4c6e98b7e2f77/src/apps/terminal/ftp_server.cpp#L33
I'm just copying the src folder, renaming it to "FTP_server" and that's it. Other projects worked OK with that approach.
Would you know if that variable file is declared elsewhere?
Hi, not sure how platformio works but in VSCode I need to have library.properties file for it to pick up the files in the src-folder. This is how my libraries folder looks:
and in the project that uses the libraries I do the includes with <> around since they are libraries:
Hope it helps
Hello,
Thank you for adding sdFat support. I was trying the code on PlatformIO, downloaded and then tried to run. However, it fails on the compilation.
This is the error message:
Would you have any idea why?
Thanks!