Go Down

Topic: WiFly Shield not connecting to 3G Wifi card (Read 634 times) previous topic - next topic

kdwalton

All,

I am using the WiFly shield and am wanting to connect it to my 3G Wifi Card from Verizon.  I can connect using my personal laptop by simply entering the ssid and the passphrase off the back of my wifi card.  When I enter those same credentials into the credentials file, the WiFly shield has trouble connecting.  Anybody have any suggestions?

My code:

  WiFly.begin();
 
    if (!WiFly.join(ssid, passphrase))
    {
      Serial.println("Connection Failed!");
      while(1)
       {
         Serial.println("Hang on Failure");
          // Hang on failure.
       }
    }
   
  Serial.print("IP: ");
  Serial.println(WiFly.ip());



holmes4

Two ideas,

First use code tags to post your code thats the #.

Second post all your code!.

Mark

kdwalton

Code: [Select]

#include "WiFly.h"          // WiFly Library
#include "Credentials.h"    // Credentials File for Wifi

Server server (80);

WiFly.begin();
 
    if (!WiFly.join(ssid, passphrase))
    {
      Serial.println("Connection Failed!");
      while(1)
       {
         Serial.println("Hang on Failure");
          // Hang on failure.
       }
    }
   
  Serial.print("IP: ");
  Serial.println(WiFly.ip());



kdwalton

Here is what my crendentials.h file looks like:

Code: [Select]

#ifndef __CREDENTIALS_H__
#define __CREDENTIALS_H__

// Wifi parameters


char passphrase[] = "2684354591156*****";
char ssid[] = "Verizon AC30 ****";

#endif


last numbers were stared for privacy

holmes4

Try's again

Post ALL your code!. Eg setup(), loop() etc. main() if your not using the IDE.

Mark

Go Up