Hello All =(
plz when i compile the code this message appear
In function 'boolean sendMyPage(char*)':
:113: error: 'Wiserver' was not declared in this scope
WiServer.print("<html><center>");
WiServer.print("<img src=\"logo.png\">");
WiServer.print("<table width=200 cellspacing=0 cellpadding=0 border=0>");
WiServer.print("<tr><td> <form>");
WiServer.print("Chemical Lab Security System");
WiServer.print("</td></tr>");
WiServer.print("<tr><td>");
WiServer.print("Date:</td>");
WiServer.print("<td>");
WiServer.print(day());
Wiserver.print(month());
Wiserver.print(year());
WiServer.print("</td></tr>");
WiServer.print("<tr><td>");
WiServer.print("Tempreture Value </td>");
WiServer.print("<td> <input type=\"text\" name=\"temperature\" value=");
WiServer.print(Temp);
WiServer.print("<td BGCOLOR=/""");
Wiserver.print(colorTemp);
Wiserver.print("\"");
Wiserver.print(stateT);
WiServer.print("</table>");
Wiserver.print("</td></tr><tr><td><p>Gas leak: </p> </td><td><input type=\"text\" name=\"gas\" value=\"");
Wiserver.print(gas);
Wiserver.print("\"></td><td BGCOLOR=\"");
Wiserver.print(colorgas);
Wiserver.print("\">");
Wiserver.print(stateG);
Wiserver.print("</td></tr><tr><td><p>Flame: </p> </td><td><input type=\"text\" name=\"flame\" value=\"");
Wiserver.print(flame);
Wiserver.print("\"/></td><td BGCOLOR=");
Wiserver.print(colorFlame);
Wiserver.print(">");
Wiserver.print(stateF);
Wiserver.print("</td></tr></table> <a href=\"results.php\">For more resuts click here</a>");
WiServer.print("</center></html>");
return true;}
return false;
}
i want to change the Bgcolor based on the value recieved for example if the tempreture value more than 30 i want the BGcolor red otherwise i want it green.
i test the vaues if it more than 30 the variable ColorT will be Red and StateT will be Warining. how can do this
plz help me how can i solve this probelm.
Thanx in advance