10 years ago.  This question has been closed. Reason: answered

How to get wifi working?

I am using a Adafruit CC3000 shield with NucleoF401, using the CC3000 code example compiles fine but my board doesn't seem to connect. I have a 16x2 LCD which works fine before reaching any wifi commands but won't work after. I am sure that the wiring is fine and I have called the class correctly. Here is my simplest code example:

int main() { init(); board dependent init pc.baud(115200); lcd.locate(0,0); lcd.printf("cc3000"); wifi.init(); int con = wifi.connect(); if(con == -1) { lcd.locate(0, 0); lcd.printf("Failed"); } else { lcd.locate(0, 0); lcd.printf("cc3000:connected"); lcd.locate(0, 1); lcd.printf("IP: %s",wifi.getIPAddress()); } }

Any help would be much appreciated.

Not certain if you asked this question already. how do you feed the cc3000? What's your connection? The cc3000 requires quite a current which is usually not sufficient to draw from only usb..

posted by Martin Kojtal 07 Apr 2014

Its being powered by the Nucleo via a USB but I've checked the supply and they are 3.3V and 4.94V on the shield.

posted by Marcus Parker 07 Apr 2014

Thanks for the help. I've sorted it now, it was not the power but switching WEP to WPA seems to have sorted it.

posted by Marcus Parker 08 Apr 2014