ESPAsyncWebServer read input Field

Hello masters of programming.
Performing a test with the code of the ESPAsyncWebServer library, I observed in the documentation how to write in an html home page saved in SPIFFS. I am looking for a possibility to read a value in the “Input Field” of the SPIFFS html page and save it in a variable in the ESP32 RAM.
Below I inform the code used to write on the html page. But I try to read the Input Field value.

##############################################

###############################################

String process (const String & variable1){
if(variable1 == “pagevalue”){
savedatawrite = “valuewrite”;

return savedatawrite;

}
return String();

}
server.on_botton_page("/on", HTTP_GET, (AsyncWebServerRequest *request){
request->send(SPIFFS, “/index.html”, String(), false, process);
});

Systems are built in “system building”. Don’t ever try to build a system from the programming level.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.