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:
22:9b077e2823ce
Parent:
20:151b5a4fdd29
Child:
23:a783c62c36d0
--- a/GSwifi.h	Thu Nov 08 01:35:37 2012 +0000
+++ b/GSwifi.h	Wed Dec 26 08:41:43 2012 +0000
@@ -20,10 +20,13 @@
 #include "ipaddr.h"
 
 #define GS_BAUD 115200
-#define GS_UART_DIRECT
 
+#define GS_UART_DIRECT
 #define GS_BULK
 
+#define GS_DNSNAME "setup.local"
+#define GS_WREGDOMAIN "2" // 0:FCC, 1:ETSI, 2:TELEC
+
 #define GS_TIMEOUT 10000 // ms
 #define GS_TIMEOUT2 30000 // ms
 #define GS_CMD_SIZE 100
@@ -165,7 +168,7 @@
      * @retval -1 failure
      * firmware: s2w-secureweb, s2w-web, s2w-wpsweb
      */
-    int limitedap (GSSECURITY sec, const char *ssid, const char *pass, IpAddr ipaddr, IpAddr netmask, bool prov = false);
+    int limitedap (GSSECURITY sec, const char *ssid, const char *pass, IpAddr ipaddr, IpAddr netmask, char *dns = NULL);
     /**
      * unassociate
      */
@@ -361,6 +364,14 @@
 #endif
 
     /**
+     * Web server
+     */
+    int provisioning (char *user, char *pass);
+    /**
+     * change baud rate
+     */
+    int setBaud (int baud);
+    /**
      * base64 encode
      */
     int base64encode (char *input, int length, char *output, int len);
@@ -373,7 +384,7 @@
      */
     int urldecode (char *str, char *buf, int len);
 
-#ifdef DEBUF
+#ifdef DEBUG
     void test ();
     int getc();
     void putc(char c);