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

src/main.cpp: In function 'void startWebserver()': #92

Open
thoduh opened this issue Sep 9, 2024 · 0 comments
Open

src/main.cpp: In function 'void startWebserver()': #92

thoduh opened this issue Sep 9, 2024 · 0 comments

Comments

@thoduh
Copy link

thoduh commented Sep 9, 2024

I've been working on this script for days, but just can't get any further.
I use PlatformIO, but I'm still at the beginning.

This error always appears

`Compiling .pio/build/esp32dev/src/main.cpp.o

src/main.cpp: In function 'void startWebserver()':
src/main.cpp:269:36: error: 'WebServerRequest' has not been declared
webServer.on("/", HTTP_GET, [](WebServerRequest request){
^~~~~~~~~~~~~~~~
src/main.cpp: In lambda function:
src/main.cpp:270:16: error: request for member 'send' in '
request', which is of non-class type 'int'
request->send(SPIFFS, "/wificonfig.html", String(), false, processor);
^~~~
src/main.cpp: In function 'void startWebserver()':
src/main.cpp:271:6: error: no matching function for call to 'WebServer::on(const char [2], http_method, startWebserver()::<lambda(int*)>)'
});
^`

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