Hello, everyone,
I want to put together the three parts of the HTML codes for my web server:
const char * Webtext1[ ] PROGMEM = {topText, index_html, bottomText};
const char topText[ ] PROGMEM = R"rawliteral(
<html>
<head>
...
</head>
<body>
<headers>
....
</header>
)rawliteral";
const char index_html[ ] PROGMEM = R"rawliteral(
<nav>
...
</nav>
<main>
...
</main>
)rawliteral";
const char bottomText[ ] PROGMEM = R"rawliteral(
<footers>
....
</footer>
</body>
</html>
)rawliteral";
server.on("/", HTTP_GET, [](AsyncWebServerRequest *request) {
request->send_P(200, "text/html", Webtext1, processor);
});
And what can I say, it doesn't work that way....
Do you have a solution how I can merge the strings?
Thank you very much