Coding
Coding
client.println("<font color=blue>");
client.println("<center>");
client.println("<h1>By Prince, Renuka Chauhan,
Shreya Arun</h1>");
client.println("</center>");
client.println("</body>");
client.println("</html>");
break;
}
if (c == '\n') {
// you're starting a new line
currentLineIsBlank = true;
} else if (c != '\r') {
// you've gotten a character on the current
line
currentLineIsBlank = false;
}
}
}
// give the web browser time to receive the
data
delay(1);
if(readString.indexOf("?Grid1on") >0) //
these are the snippets the Arduino is watching
for.
{
digitalWrite(6, HIGH);
}
else{
if(readString.indexOf("?Grid1off") >0)
{