Wifly Library that works with RN171
I have the same configuration and it works (Arduino UNO rev3)
I used WiFlyHQ library. Just be carefull with the serial.

Serial.begin(9600);
...
if (!wifly.begin(&amp;Serial, NULL)) { 
   ...


Upload with serial select then put it on USB and then open the monitor.