GSwifiInterface (interface for GainSpan Wi-Fi GS1011 modules) see https://mbed.org/users/gsfan/notebook/GSwifiInterface/

Dependencies:   GSwifiInterface mbed

Fork of Wifly_HelloWorld by Samuel Mokrani

Revision:
7:3644ae697c52
Parent:
6:2e3441cd9128
--- a/main.cpp	Sun Jan 27 14:37:15 2013 +0000
+++ b/main.cpp	Wed Jan 30 05:53:39 2013 +0000
@@ -12,12 +12,13 @@
 *     - SEC_WEP is the security
 */
 //GSwifiInterface gs(p13, p14, p12, P0_22, p9, "SSID", "PHRASE", GSwifi::SEC_WPA_PSK);
-GSwifiInterface gs(p13, p14, NC, NC, p9, "SSID", "PHRASE", GSwifi::SEC_WEP);
+GSwifiInterface gs(p13, p14, NC, NC, p9, "SSID", "PHRASE", GSwifi::SEC_WPA_PSK);
 // TX, RX, CTS, RTS, RESET
 
 int main() {
+    pc.baud(115200);
     gs.init(); // use DHCP
-    if (gs.connect()) return -1; // join the network
+    if (gs.connect() == false) return -1; // join the network
     printf("IP Address is %s\n\r", gs.getIPAddress());
     gs.disconnect();
 }