I have a RN-XV connected to Serial2 on a Mega2560. I amended WiFi-Test to use Serial2 - when I run the program with no other modifications, it tries to associate and fails, as expected..
I then changed the SSID assignment call, and, since my router uses WEP, not WPA, changed wifly.setPassPhrase() to wifly.setKey() and it now fails with the above message - ERR: Bad Args
I've reset everything, tried factory defaults, dropped "0x" at the start of the WEP-key string etc. all to no avail..
Any suggestions?