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

Fork of GSwifi_old 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/

Information

Please change the baud rate in advance.

  • ATB=115200
  • AT&W0

It may be better and sometimes faster.
GSwifi gs(p13, p14, baud);

Heavily modified new library: http://mbed.org/users/gsfan/code/GSwifi

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

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

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

Information

モジュールはあらかじめ次のコマンドでボーレートを変更しておく。

  • ATB=115200
  • AT&W0

場合によってはもっと高速の方がいいかもしれない。クラス宣言時にレート設定をする。
GSwifi gs(p13, p14, baud);

大幅に更新された新しいライブラリ: http://mbed.org/users/gsfan/code/GSwifi

Revision:
15:5febfc399099
Parent:
12:63e714550791
Child:
16:aea56cce3bf5
--- a/GSwifi.h	Fri Oct 05 16:42:50 2012 +0000
+++ b/GSwifi.h	Tue Oct 09 16:05:40 2012 +0000
@@ -302,12 +302,23 @@
      * @return CID, -1:failure
      * If you use ssl, please set system time.
      */
+    int httpGet (Host &host, char *uri, int ssl, char *user, char *pwd, onGsReceiveFunc ponGsReceive = NULL);
     int httpGet (Host &host, char *uri, int ssl = 0, onGsReceiveFunc ponGsReceive = NULL);
     /**
+     * http request
+     * @return CID, -1:failure
+     * If you use ssl, please set system time.
+     */
+    int httpPost (Host &host, char *uri, char *body, int ssl, char *user, char *pwd, onGsReceiveFunc ponGsReceive = NULL);
+    int httpPost (Host &host, char *uri, char *body, int ssl = 0, onGsReceiveFunc ponGsReceive = NULL);
+    /**
      * certificate 
      */
     int certAdd (char *name, char *cert, int len);
 
+    int base64encode (const char *input, int length, char *output, int len);
+    int urlencode (char *str, char *buf, int len);
+
     void test ();
     int getc();
     void putc(char c);