GainSpan Wi-Fi library see: http://mbed.org/users/gsfan/notebook/gainspan_wifi/

Dependents:   GSwifi_httpd GSwifi_websocket GSwifi_tcpclient GSwifi_tcpserver ... more

Fork of GSwifi by gs fan

GainSpan Wi-Fi library

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

see: http://mbed.org/users/gsfan/notebook/gainspan_wifi/

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

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

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

解説: http://mbed.org/users/gsfan/notebook/gainspan_wifi/

Revision:
31:0abdc584823d
Parent:
29:1c4419512941
Child:
35:515ec79792d3
--- a/GSwifi_httpd.cpp	Tue Feb 26 03:31:20 2013 +0000
+++ b/GSwifi_httpd.cpp	Tue Feb 26 06:05:11 2013 +0000
@@ -29,9 +29,9 @@
 #ifdef GS_USE_HTTPD
 
 #define MIMETABLE_NUM 9
-struct {
-    const char ext[5];
-    const char type[24];
+static const struct {
+    char ext[5];
+    char type[24];
 } mimetable[MIMETABLE_NUM] = {
     {"txt", "text/plain"},  // default
     {"html", "text/html"},
@@ -336,14 +336,14 @@
     for (i = 0; i < MIMETABLE_NUM; i ++) {
         j = strlen(mimetable[i].ext);
         if (file[strlen(file) - j - 1] == '.' &&
-          strnicmp(&file[strlen(file) - j], (char*)mimetable[i].ext, j) == NULL) {
+          strnicmp(&file[strlen(file) - j], mimetable[i].ext, j) == NULL) {
             return (char*)mimetable[i].type;
         }
     }
     return (char*)mimetable[0].type;
 }
 
-int GSwifi::strnicmp (char *p1, char *p2, int n) {
+int GSwifi::strnicmp (const char *p1, const char *p2, int n) {
     int i, r = -1;
     char c1, c2;