Hi all,
I've been working on some basic HTML pin controls as a mini project to learn Ethernet side of Arduino but I keep getting stuck....
The following lines always crash the Arduino and make it restart.
// client.print("<form method=get>");
// client.print("<input type='radio' name=r2 value='1'");
// if (digitalRead(2) == 1) client.print(" checked");
// client.print("> Relay 2<br>");
// client.print("<input type='radio' name=r value='2' checked> Two<br>");
// client.print("<input type='radio' name=r value='3'> Three<br>");
// client.print("</form>");
Even leaving out the 3 that make up the if statement and just using the following line does the same..
// client.print("<input type='radio' name=r value='3'> Three<br>");
If I replace with...
client.print("<br>");
client.print("Test Text");
client.print("<br>");
It works fine, just not with the form HTML.
Full code attached.
Any ideas?