This is my first time using the esp8266 and i wanted to keep things simple - no javascript. I find it interesting that i can pass variables to html without any javascript or php. Some code i found uses %variable% syntax in html. I also don't understand how the esp8266 is sending these variables over to the html on spiffs. Here is the code on the arduino ide:
server.on("/LED1on", HTTP_GET, [](AsyncWebServerRequest *request){
digitalWrite(LED1, HIGH);
request->send(SPIFFS, "/index.html", String(), false, processor);
});
The variable is processor (a function), but when I try to change to a function i make myself, it doesn't recognize request->send. Anyone know how to send variables to html??