From the docs for ESP8266WebServer here https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266WebServer its shows server.on syntax like this
server.on("/", handlerFunction);
I don't understand what this line is doing.
server.on ( "/admin.html", []() { Serial.println("admin.html"); server.send ( 200, "text/html", PAGE_AdminMainPage ); } );
I specifically do not understand what the []()
is. The rest of it I get.