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:
20:9bfb8a13010c
Parent:
15:086d1a33a197
--- a/GSwifi/GSwifi_httpd_util.cpp	Thu Jun 05 04:21:02 2014 +0000
+++ b/GSwifi/GSwifi_httpd_util.cpp	Thu Jun 05 06:06:19 2014 +0000
@@ -23,15 +23,15 @@
 int GSwifi::httpdFile (int cid, char *dir) {
     FILE *fp;
     int i, len;
-    char buf[CFG_DATA_SIZE];
-    char file[CFG_CMD_SIZE];
+    char buf[256];
+    char file[80];
 
     INFO("httpdFile %d %s", cid, dir);
 
     strcpy(file, dir);
-    strcat(file, _httpd[cid].filename);
+    strncat(file, _httpd[cid].filename, sizeof(file) - strlen(file) - 1);
     if (file[strlen(file) - 1] == '/') {
-        strcat(file, "index.html");
+        strncat(file, "index.html", sizeof(file) - strlen(file) - 1);
     }
     DBG("file: %s\r\n", file);