I'm using an elecrow wifi shield, and I am trying to connect the shield to the wifi using the program found on their site
#include "Wifly.h"
#include <SoftwareSerial.h>
WiflyClass Wifly(2,3);
void setup()
{
Serial.begin(9600);//use the hardware serial to communicate with the PC
Wifly.init();//Initialize the wifishield
Wifly.setConfig("SSID","PASSWORD");//here to set the ssid and password of the Router
Wifly.join("SSID");
Wifly.checkAssociated();
while(!Wifly.connect("192.168.1.164","90"));//connect the remote service
Wifly.writeToSocket("Connected!");
}
void loop()
{
if(Wifly.canReadFromSocket())
{
Serial.print(Wifly.readFromSocket());
}
if(Serial.available())
{
Wifly.print((char)Serial.read());
}
}
(with the details changed to fit my computer & wifi) and after running the program I get a long message ending with
<4.41> OPENConnected!CCLLOOSS****CCLLOOSS
but when I try and run another program I get a message saying the shield is not present
has anyone run into a similar problem with this company's shield or another?