Hi all,
lately I've been testing on this tutorial :
http://tutorial.cytron.com.my/2011/07/2 ... ment-50862but i face an problem to turn on the LED.
the code that confused me are as follow:
// button functions
client.println("<form method=get name=form>");
client.println("<button name=b value=1 type=submit style=height:80px;width:150px>LED On</button>");
client.println("<button name=b value=2 type=submit style=height:80px;width:150px>LED Off</button>");
client.println("</form><br />");
//---------------------------
did i need to change the value=1 to value=49 (refer to ascii table) in order to meet this expression?
// LED control
if (command == "1") { //49
digitalWrite(LED, HIGH);
}
else if (command == "2") { //50
digitalWrite(LED, LOW);
}
//-------------
i didnt post full code because worried it will be to long..
hope someone can give suggestion..
thank you