Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on missing WebSrv.h file missing #17

Open
mano1979 opened this issue Jun 3, 2021 · 1 comment
Open

Error on missing WebSrv.h file missing #17

mano1979 opened this issue Jun 3, 2021 · 1 comment

Comments

@mano1979
Copy link

mano1979 commented Jun 3, 2021

I put the WebSrv.cpp file in a similar named folder in de the libraries folder. However on compilation I get this error:

/Users/biletsky/Documents/Arduino/Printer_3D/Printer_3D.ino: In function 'void setup()': Printer_3D:96:49: error: no matching function for call to 'ESPWebDAV::init(int, long unsigned int, int)' if(!dav.init(SD_CS, SPI_FULL_SPEED, SERVER_PORT)) { ^ /Users/biletsky/Documents/Arduino/Printer_3D/Printer_3D.ino:96:49: note: candidate is: In file included from /Users/biletsky/Documents/Arduino/Printer_3D/Printer_3D.ino:5:0: /Users/biletsky/Documents/Arduino/libraries/ESPWebDAV/ESPWebDAV.h:22:7: note: bool ESPWebDAV::init(int, SPISettings, int) bool init(int chipSelectPin, SPISettings spiSettings, int serverPort); ^ /Users/biletsky/Documents/Arduino/libraries/ESPWebDAV/ESPWebDAV.h:22:7: note: no known conversion for argument 2 from 'long unsigned int' to 'SPISettings' exit status 1 no matching function for call to 'ESPWebDAV::init(int, long unsigned int, int)'

How would I solve this?

@mano1979
Copy link
Author

mano1979 commented Jun 3, 2021

After switching to te sdfat library version 1.0.16 I just get this:

`

sketch/Printer_3D.ino.cpp.o: In function blink()': /Users/biletsky/Documents/Arduino/Printer_3D/Printer_3D.ino:169: undefined reference to ESPWebDAV::isClientWaiting()'
/Users/biletsky/Documents/Arduino/Printer_3D/Printer_3D.ino:170: undefined reference to ESPWebDAV::rejectClient(String)' sketch/Printer_3D.ino.cpp.o:(.text.loop+0x18): undefined reference to ESPWebDAV::handleClient(String)'
sketch/Printer_3D.ino.cpp.o:(.text.loop+0x42): undefined reference to ESPWebDAV::isClientWaiting()' sketch/Printer_3D.ino.cpp.o: In function loop':
/Users/biletsky/Documents/Arduino/Printer_3D/Printer_3D.ino:119: undefined reference to ESPWebDAV::rejectClient(String)' /Users/biletsky/Documents/Arduino/Printer_3D/Printer_3D.ino:124: undefined reference to ESPWebDAV::handleClient(String)'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Generic ESP8266 Module.`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant