Im looking to control an led on an arduino board over the internet, I want to be able to send a command to it that will turn it on or off.
I want to be able to go to a web page that has a button (or 2) on it that when I press it will turn the led on or off. I have seen lots of examples online of different ways of achieving that, but not the way I need it to work.
I DO NOT want the web page to be hosted on the Ethernet shield, so the page is hosted externally. So I am looking for a method to just send a command over the web some how, and for it to return with a 1 or 0 (or some other indication) to say that it is on or off.
I have been researching it for the past few days and cannot find a method of doing it this way, can anyone shed some light on it.
Assuming you have a web site hosting your page with the button, you could build another page there that the arduino can poll, acting as a client with a get request. That page can return what the state the LED should be in. Alternatively, you could have the web server send a UDP packet to the arduino when someone clicks the button to change state.
A little bit of self promotion on my part, however it's relevant to the topic.
You may be interested in a platform I've been developing, called Teleduino. Not only does it allow you to control an LED, but also read inputs, drive shift registers, use serial, drive servos etc etc.