Problem with WiFly and Arduino duemilanove

I've some problems with my Arduino duemilanove and the WiFly shield from sparkfun. This is my code:

#include "WiFly.h"
WiFlyClient client("***********", 15000);


char passphrase[] = "usibigbrother";
char ssid[] = "USI_BIG_BROTHER";
void setup() {

  Serial.begin(9600);
 delay(100);
  Serial.println("connecting...");

  WiFly.begin();

  if (!WiFly.join(ssid, passphrase,8)) {
    Serial.println("Association failed.");
    while (1) {
      // Hang on failure.
    }
  }
}

void loop() {
  Serial.println("Start of void loop");
  if (client.available()) {
    char c = client.read();
    Serial.print(c);
  }

  if (!client.connected()) {
    Serial.println();
    Serial.println("disconnecting.");
    client.stop();
  }
  Serial.println("End of void loop");
}

When i start it the PI04 pin turns on and starts to blink with a green light, after one or two seconds the PI06 becomes yellow and blink for 3 times; in the meanwhile the PI05 becomes red and starts to blink some times and then it turns off.

I don't understand where the problem is. I wanna to create a Client in order to connect to a Server and take the data from it. I'm using the last version of Arduino IDE. Thank you in advance.

And what does your Serial Monitor output say?

There is a table in the hookup guide (WiFly Shield Hookup Guide - SparkFun Learn) that tells you what the various light patterns mean, That might help.

No actually that doesn't help, i don't need a server but a client. I've already read the guide. My output is just

connecting...
connecting...
Association failed.

So you are failing to join the network. Sounds like an ssid or passphrase problem.

  if (!WiFly.join(ssid, passphrase,8)) {

The third argument to .join() is a boolean. Kind of odd to be passing '8'.
If your passphrase has any spaces be sure to put $ in their place.

Nope, the third argument is the kind of passoword, in my case WPA2. Even if i didn't specify any security it doesn't work

Advancauser:
Nope, the third argument is the kind of passoword, in my case WPA2. Even if i didn't specify any security it doesn't work

Nope, nope.

boolean join(const char *ssid, const char *passphrase, 
                 boolean isWPA = true);

thank you, but it doesn't work