Comments (3)
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
from esp32-ftp-server.
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?
from esp32-ftp-server.
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:
#include <Arduino.h>
#include <SPI.h>
#include <SdFat.h>
#include <WiFi.h>
#include <ESP32-FTP-Server.h>
Hope it helps
from esp32-ftp-server.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32-ftp-server.