setProtocol() and Wifly (RN-171)

Has anyone successfully used the "setProtocol()" command with the WiFlySerial library? everytime i use that function the activity LED hooked up to my RN-171 stays illuminated for nearly 10 seconds and then my code seems to stop (i dont see a print statement that i am currenltly monitoring in my loop()). any help is greatly appreciated.

I got it. The setProtocol() in the WiFlySerial library does not seem to be working quite right, i had to use sendCommand with all the parameters specified in the WiFly Command Ref. Documentation.