RN-XV wifly Serial Webserver parsing?

Hello there!

I have configured ssid, password for RN-XV using telnet. It is connected to my router. Now I have created serial connection with uno. Here is the code. How do I setup webserver parsing on uno using RN-XV so that I can control led.

Here is the code. Please guide me. Thank you.

#include <SoftwareSerial.h>
#include <SPI.h> // needed for Arduino versions later than 0018
#include <TextFinder.h>
SoftwareSerial mySerial(2, 3); // RX, TX

void setup()

void loop()
if (mySerial.available())
if (Serial.available())
TextFinder finder(mySerial );
if( finder.find(“GET /”) ) {
while(finder.findUntil(“pin”, “\n\r”)){
char type = mySerial.read(); // D or A
int pin = finder.getValue();
int val = finder.getValue();
if( type == ‘D’) {
Serial.print("Digital pin ");
pinMode(pin, OUTPUT);
digitalWrite(pin, val);
else {
Serial.print(“Unexpected type “);


In my experience the RN-XV is quite picky about serial timing and does not work reliably with a SoftwareSerial connection. In my case it works very reliable with the hardware serial but I never got it to transfer more than about 50 characters using the SoftwareSerial emulation.