Let's say I have a page that contains index.html, main.css, detail.css?
I'm using the AsyncTCP.h and ESPAsyncWebServer.h libraries.
So something like this...?
Or do I have to concatenate the strings 1st and send it all at once?
Code: Select all
const char HTML[] = ".... my html...";
const char MAINCSS[] = "...main css...";
const char DETAILCSS[] = "...detail css...";
server.on("/", HTTP_GET, [](AsyncWebServerRequest *request){
request->send(200, "text/html", HTML);
request->send(200, "text/html", MAINCSS);
request->send(200, "text/html", DETAILCSS);
});