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:
13:189e04ac70bd
Parent:
12:057089026a20
Child:
14:1e89a3f0282d
--- a/GSwifi/GSwifi_msg.cpp	Fri Nov 22 14:03:07 2013 +0000
+++ b/GSwifi/GSwifi_msg.cpp	Tue Nov 26 09:06:35 2013 +0000
@@ -242,7 +242,7 @@
 }
 
 #define MSG_TABLE_NUM 15
-#define RES_TABLE_NUM 10
+#define RES_TABLE_NUM 11
 int GSwifi::parseMessage () {
     int i;
     char buf[256];
@@ -272,6 +272,7 @@
     } res_table[RES_TABLE_NUM] = {
       {RES_NULL,        NULL},
       {RES_CONNECT,     &GSwifi::resConnect},
+      {RES_WPAPSK,      &GSwifi::resWpapsk},
       {RES_WPS,         &GSwifi::resWps},
       {RES_MACADDRESS,  &GSwifi::resMacAddress},
       {RES_DHCP,        &GSwifi::resIp},
@@ -424,6 +425,13 @@
     }
 }
 
+void GSwifi::resWpapsk (const char *buf) {
+    if (strncmp(buf, "Computing PSK from SSID and PassPhrase", 38) == 0) {
+        _state.res = RES_NULL;
+        DBG("wpapsk\r\n");
+    }
+}
+
 void GSwifi::resWps (const char *buf) {
     if (_state.n == 0 && strncmp(buf, "SSID", 4) == 0) {
         strncpy(_state.ssid, &buf[5], sizeof(_state.ssid));