Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By brutzler
#29090 Sorry, was my fault.
I found out, that I included some CSS/Javascript elements into the HTML-Page, I want to send over Wifi.
This is causing the messages.
But why?
I wrapped a
Code: Select allconst char html_page1[] = R"=====(...)=====";
around.
Why does the compiler take care of the content?

Perhaps martinayotte's idea with a seperate *.h file is the solution?

EDIT:
Looking deeper:
This line is causing the trouble:
Code: Select all <style type='text/css'>canvas{ border: 5px solid #000; -moz-border-radius: 30px; border-radius: 30px; -webkit-border-radius: 30px ;}</style>

and something inside here:
Code: Select all   #info-box {
        border: 3px solid #800;
        padding: 10px;
        position: absolute;
        right: 1em;
        top: 0px;
        width: 250px;
     }
User avatar
By brutzler
#29101 Hmmm...
therefore I need a little help.
I made a WebPage1.h stored in the same directory.
Looking like this:
Code: Select allconst char html_page1[] = R"=====(
<html>
  <head>
.....
</html>
)=====";


Sending looks like this:
Code: Select all  server.send ( 200, "text/html", html_page1);

I got an error: html_page1 is not declared...
Then I added a:
Code: Select all#include <WebPage1.h>

-->"...fatal error: WebPage1.h: No such file or directory"

???

EDIT:
Ahhhh...
Code: Select all#include "WebPage1.h"
is better :D