FingerprintDoorbell
FingerprintDoorbell copied to clipboard
src/main.cpp: In function 'void startWebserver()':
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*)>)' }); ^`