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.
#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);
}
}