Update to 3.10.3

This commit is contained in:
2026-04-01 08:50:55 +02:00
parent f5e5d92d31
commit 1d45d307ab
35 changed files with 723 additions and 229 deletions
+5 -5
View File
@@ -1887,7 +1887,7 @@ void setup(){
}, onUpload);
// send a file when /index is requested
server.on("/index", HTTP_ANY, [](AsyncWebServerRequest *request){
server.on("/index", HTTP_ALL, [](AsyncWebServerRequest *request){
request->send(SPIFFS, "/index.htm");
});
@@ -1974,10 +1974,10 @@ public :
void begin(){
// attach global request handler
classWebServer.on("/example", HTTP_ANY, handleRequest);
classWebServer.on("/example", HTTP_ALL, handleRequest);
// attach class request handler
classWebServer.on("/example", HTTP_ANY, std::bind(&WebClass::classRequest, this, std::placeholders::_1));
classWebServer.on("/example", HTTP_ALL, std::bind(&WebClass::classRequest, this, std::placeholders::_1));
}
};
@@ -1986,10 +1986,10 @@ WebClass webClassInstance;
void setup() {
// attach global request handler
globalWebServer.on("/example", HTTP_ANY, handleRequest);
globalWebServer.on("/example", HTTP_ALL, handleRequest);
// attach class request handler
globalWebServer.on("/example", HTTP_ANY, std::bind(&WebClass::classRequest, webClassInstance, std::placeholders::_1));
globalWebServer.on("/example", HTTP_ALL, std::bind(&WebClass::classRequest, webClassInstance, std::placeholders::_1));
}
void loop() {