I am looking for an Arduino sketch that will allow me to do two functions, receive http requests to turn on/off outputs and secondly be able to send http requests when a button is pushed.
I am using the Arduino mega 2560 along with an Ethernet shield.
I would like to be able to program the IP and mac settings on a SD card so the settings can be changed by altering the file and inserting it into the shield and restarting arduino
Also stored on the SD card I would like the arduino to read an XML file which contains an index of all the pins and then configures the inputs or outputs and what web requests to listen for or send.
The following would be an example of a XML node for assigning an input. It sets pin 14 as an input and when a button is pressed it triggers the http request.
The following would be an example XML node for assigning an output. It sets pin 15 to an output and will turn of or off when a incoming request is sent to http://ardunio/on/1 or
A better alternate solution would be a JSON parser seen here https://github.com/interactive-matter/aJson