Passing html code of Arduino to an HTM page

Good morning guys!!

Well, I need a little help.

I have a .ino code running normally, but must pass all part of html (client.println / client.print) for HTM page(index.htm) running on an SD card.

Here’s the code:

client.println("HTTP/1.1 200 OK");
          client.println("Content-Type: text/html");
          client.println();
          client.println("<html>");
          client.println("<head>");
          client.println("<title>ASPINT - Aspersor Inteligente</title>");
          client.println("<meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1'>");
          client.println("<meta name='viewport' content='width=720, initial-scale=0.5' />");
          client.println("<link rel='stylesheet' type='text/css' href='http://aspint.site88.net/aspint.css' />");
          client.println("<script type='text/javascript' src='http://ascint.site88.net/aspint.js'></script>");
          client.println("</head>");
          client.println("<body>");
          client.println("<div id='wrapper'><src='http://ascint.site88.net/logo2.png'/>
");
          client.println("<div id='div1'>Aspersor 1</div>");
          client.println("<div id='div2'>Aspersor 2</div>");
          client.print("<div id='rele'></div><div id='estado' style='visibility: hidden;'>");
          client.print(ligado);
          client.println("</div>");
          client.println("<div id='botao'></div>");
          client.println("<div id='botao_2'></div>");
          client.print("<div id='rele_2'></div><div id='estado_2' style='visibility: hidden;'>");
          client.print(ligado_2);
          client.println("</div>");
          client.println("</div>");
          client.println("<script>AlteraRele1()</script>");
          client.println("<script>AlteraRele2()</script>");
          client.println("</div>");
          client.println("</body>");
          client.println("</html>");

Much of the code being “client.println” I can spend due to HTM commands such as

and , but the “client.print” I have no idea how to pass.

All help is welcome, thank you !!!

Hi Pelilo. Your question does not make sense. Please rephrase it. Thanks.

but the "client.print" I have no idea how to pass.

You don't put the client.print() statements in the SD file. You put the data in the SD file. Then, when you read a record from the file, you use client.print() to send the record to the client.