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:
15:086d1a33a197
Parent:
12:057089026a20
Child:
17:c30ed7b1536d
--- a/GSwifi/GSwifi_httpd_ws.cpp	Fri Jan 10 14:23:33 2014 +0000
+++ b/GSwifi/GSwifi_httpd_ws.cpp	Thu Jan 30 15:10:14 2014 +0000
@@ -135,9 +135,9 @@
         memcpy(&tmp[i], mask, 4);
         i += 4;
     }
-    r = send(cid, tmp, strlen(tmp));
+    r = send(cid, tmp, i);
  
-    if (r == 0) {
+    if (r > 0) {
         if (mask) {
             char tmp2[len];
             for (i = 0; i < len; i ++) {
@@ -242,7 +242,7 @@
     case 0x02: // binary
         i = httpdGetHandler(_httpd[cid].uri);
         if (i >= 0) {
-            if (_httpd_handler[i].func) {
+            if (_httpd_handler[i].func && _httpd_handler[i].ws) {
                 // cgi
                 _httpd_handler[i].func(cid);
             }