okie doke, here is my code this far... (it errors out so I know i have syntax issues...but it's easy to see what I am trying to accomplish)
the RN-VX was already configured manually using $$$ and various commands, so i know it's listening to UDP messages from my iPhone 
/* using an RN-XV setup to monitor UDP messages, sending to the serial port.
* scanning arduino serial port for P7H, P7L, P6H, P6L, P5P, and finally OFF.
* then compare the input with the above to turn one of 3 L.E.D.'s on or off for this test I removed the PWM slider,
* to challenging for now..
*/
#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3); // using soft serial to monitor what the arduino is doing. The hardware serial is busy talking to the RN-XV
char Buff [3]; // not sure if I need this as a character buffer?
void setup()
{
pinMode(5, OUTPUT); // LEDA
pinMode(6, OUTPUT); // LEDB
pinMode(7, OUTPUT); // LEDC
Serial.begin(9600);
mySerial.begin(9600);
mySerial.println("Hello, world?"); // check to see if it's working
}
void loop() // run over and over
{
while (Serial.available())
{
char ch = Serial.read(); //hoping this will transfer the characters from UDP coming in on serial port into ch?
// the meat and potatoes portion of the sketch... this errors out but I want to get the idea of what I want to do down...
if (strncmp(ch, "P7H", 3) == 0) //Check to see if the message is "P7H" if it is set Pin7. HIGH
{
digitalWrite(7,HIGH);
mySerial.println(ch); //send the message to mySerial so I can check it.
}
else if (strncmp(ch, "P7L", 3) == 0) //check to see if the message is "P7L" if it is set Pin7 LOW
{
digitalWrite(7,LOW);
mySerial.println(ch); //send the message to mySerial so I can check it.
}
else if (strncmp(ch, "P6H", 3) == 0) //check to see if the message is "P6H" if it is set Pin6 HIGH
{
digitalWrite(6,HIGH);
mySerial.println(ch); //send the message to mySerial so I can check it.
}
else if (strncmp(ch, "P6L", 3) == 0) // check to see if the message is "P6L" if it is set Pin6 LOW
{
digitalWrite(6,LOW);
mySerial.println(ch);
}
else if (strncmp(ch, "P5P", 3) == 0) // check to see if the message is "P5P" if it is set Pin5 High for a few seconds then LOW again.
{
digitalWrite(5,HIGH);
delay(1000);
digitalWrite(5,LOW);
mySerial.println(ch); //send the message to mySerial so I can check it.
}
else if (strncmp(ch, "OFF", 3) == 0) // check to see if the message is "OFF" if it is set Pin5,Pin6 and Pin7 LOW.
{
digitalWrite(5,LOW);
digitalWrite(6,LOW);
digitalWrite(7,LOW);
mySerial.println(ch); // send the message to mySerial so I can check it.
}
}
}
ok I figured out the code posting bit, now I just have to figure out the syntax.
I used "char ch = Serial.read()" to read the data into "ch" ( hoping it would store the 3 characters coming in) then use the compare string function mentioned above to see if ch was one of the codes I had assigned "P7H" or "P7L" etc.... but the syntax is not right... :
if (strncmp(ch, "P7H", 3) == 0) //Check to see if the message is "P7H" if it is set Pin7. HIGH
{
digitalWrite(7,HIGH);
mySerial.println(ch); //send the message to mySerial so I can check it.
}
did not work ....not sure why... I think the structure of the program is fine, now I need to work on the syntax....
P.S. I went back and properly posted the code in the code box for my posts 