I"m using the arduino 0022 IDE for mac.
I'm using the Arduino UNO + Ethernet Shield. The UNO monitors (currently) two sensors (simple normally open relays). When a sensor is "triggered" a TCP signal is sent to a server to Activate the "Alarm". After a bit of time a signal is sent to deActivate the "Alarm".
So, Pin 2 and Pin 3 correlate to Zone 1 and Zone 2 on the server. My hope is to reduce code and build the string instead of having to hard code the client.println() strings. Making it much easier to add/remove sensors.
On the server side, there is a perl daemon listening on the other side awaiting connections.
Some more coding has further reviled.
What I don't understand is why does this work:
// works awesome! but not what I want.
client.println("2|on+250|666|Motion Alarm|sensorPin 3");
and this does not work (meaning perl daemon cant read it correctly):
// does not work :(
String outPut = "2|on+250|666|Motion Alarm|sensorPin 3";