Pages: [1]   Go Down
Author Topic: WIFI Shield Status is always WL_NO_SHIELD  (Read 1900 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello all,
I am new to Arduino and right off the bat I encoutered an issue with the Wifi shield acting as it's not being present.
The board I have is a OSEPP Mega 2560 which is similar to Arduino Mega 2560. As seen in the pic, I have an original Arduino Wireless Proto Shield connected and an Xbee.
The code uploaded is pretty simple.
Basically, if there's a Wifi status other than WL_NO_SHIELD light up my green LED otherwise light up the red one.
Reading online I found that some people experience this due to not having enough power from the USB so I've even connected this to a 12v and still no luck.

Code:
#include <WiFi.h>

char ssid[] = "mySSID";
char pwd[] = "myPW";

void setup(){
  pinMode(12, OUTPUT);
  pinMode(52, OUTPUT);
  WiFi.begin(ssid, pwd);
  Serial.begin(9600);
 
}

void loo
  if (WiFi.status() == WL_NO_SHIELD) {
    digitalWrite(52, HIGH);
    digitalWrite(12, LOW);
  } else {
    digitalWrite(12, HIGH);
    digitalWrite(52, LOW);
  }
 
}



* pic.jpg (172.23 KB, 600x800 - viewed 36 times.)
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

anyone?
Logged

0
Offline Offline
Edison Member
*
Karma: 24
Posts: 2315
Have you mooed today?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I, maybe i'm wrong, but the wifi library works only with the Wifi Shield (IEEE 802.11), not with the radio wireless  smiley-razz
Take a look at:
http://arduino.cc/en/Main/ArduinoWirelessShield
« Last Edit: November 30, 2012, 08:39:00 am by pitusso » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So the proto shield is for communication between xbees and does not have the capability to pickup and connect to a wireless network?
« Last Edit: December 05, 2012, 09:13:24 pm by dwkd » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

would that be a fair assumption?
Logged

Pages: [1]   Go Up
Jump to: