Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- client.println("HTTP/1.1 200 OK");
- client.println("Content-Type: text/html");
- client.println("Connection: close"); // the connection will be closed after completion of the response
- client.println();
- client.println("<!DOCTYPE HTML><html><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">");
- client.println("<meta charset=\"UTF-8\"/>");
- client.println("</head>");
- client.println("<body>");
- if (alarm_w_temp == false && alarm_temp == false)
- {
- client.println("<h1 style=\"color:green;\">Brak zagrożenia pożarowego</h1>");
- }
- if (alarm_w_temp == true)
- {
- client.println("<h1 style=\"color:red;\">Alarm: wykryto wzrost temp. >20 st. C od ostatniego pomiaru</h1>");
- }
- if (alarm_temp == true)
- {
- client.println("<h1 style=\"color:red;\">Alarm: wykryto obiekt o temp >100 st. C</h1>");
- }
- client.println("<table cellpadding = 0 cellspacing = 0 font size = 1>");
- int nr_px = 0; //TABLICA KOLORÓW I TEMPERATURY JEST JEDNOWMIAROWA DLATEGO POTRZEBA ZMIENNEJ NR_PX
- for (int y=0; y<24; y++)
- {
- client.println("<tr height = 30px>");
- for (int x=1; x<=32; x++)
- {
- client.println("<td width=30px bgcolor="+obraz[nr_px]+">"+temp[nr_px]+"<td/>");
- nr_px++;
- }
- client.println("<tr/>");
- }
- client.println("<table/>");
- client.println("<script>");
- client.println("window.location.reload(true);");
- client.println("</script>");
- client.println("</body></html>");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement