Hi
I need to have a simple Arduino setup. Basically it does few things:
- listening to two relays of a RF remote receiver ( this one ) -switching on/off two different lights sources(each with a relay), a low-light LED and a regular light fluorescent -making a "beep"-sound with a piezzo buzzer -switching a red LED depending on a state
now these things should communicate with a computer, but not a single application but different.
the communication via serial connection is complicated since the programm that should be listening is another than the one sending the commands.
i've watched at the ethernet shield and it would be quite handy for me. giving a command out is easy.
but the more difficult thing is parsing incoming requests. i.e. when a mac os x opens the site "ip-of-arduino/1-0-1-1.htm" this would mean: - the first relay should close (low-light on) - the second relay open (room-light off) - play the beep sound for "alarm ready" (i.e. a beep every 10 sec) - set the red LED to on
if "1-1-2-2.htm" is requested it would mean something like this: - first relay close (low-light on) - second relay close (room light on) - play the beep sound for "alarm gone off" (i.e. beep every 1/2 second) - set the red LED to blink
now, I don't need any response to these requests (beside the regular "OK http code")
is it possible to parse the request that is made to the arduino board? and if so, how can i get that parameter?