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

Dependents:   GSwifiInterface_HelloWorld GSwifiInterface_HelloServo GSwifiInterface_UDPEchoServer GSwifiInterface_UDPEchoClient ... more

Fork of WiflyInterface by mbed official

GainSpan Wi-Fi library

The GS1011/GS2100 is an ultra low power 802.11b wireless module from GainSpan.

mbed RTOS supported.

/media/uploads/gsfan/gs_im_002.jpg /media/uploads/gsfan/gs1011m_2.jpg

ゲインスパン Wi-Fi モジュール ライブラリ

ゲインスパン社の低電力 Wi-Fiモジュール(無線LAN) GS1011/GS2100 シリーズ用のライブラリです。

mbed RTOS に対応しています。(mbed2.0)

Revision:
17:c30ed7b1536d
Parent:
16:105b56570533
Child:
19:d035412a7803
diff -r 105b56570533 -r c30ed7b1536d GSwifi/GSwifi.cpp
--- a/GSwifi/GSwifi.cpp	Tue Mar 04 15:01:38 2014 +0000
+++ b/GSwifi/GSwifi.cpp	Fri Mar 07 15:16:55 2014 +0000
@@ -109,6 +109,16 @@
             if (!r) break;
             DBG("retry\r\n");
             wait_ms(1000);
+
+            if (_state.dhcp && i == CFG_TRYJOIN - 1) {
+                cmdNDHCP(0, NULL, DEFAULT_WAIT_RESP_TIMEOUT);
+                r = cmdWA(_state.ssid);
+                if (!r && _state.dhcp) {
+                    wait_ms(1000);
+                    r = cmdNDHCP(_state.dhcp, NULL, CFG_TIMEOUT);
+                }
+                break;
+            }
         }
         break;
     case SEC_WPA_ENT: