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
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/
ゲインスパン Wi-Fi モジュール ライブラリ
ゲインスパン社の低電力 Wi-Fiモジュール(無線LAN) GS1011 シリーズ用のライブラリです。
解説: http://mbed.org/users/gsfan/notebook/gainspan_wifi/
Diff: GSwifi_net.h
- Revision:
- 19:cad912f5a6ba
- Parent:
- 18:4b97804c37d1
- Child:
- 20:151b5a4fdd29
--- a/GSwifi_net.h Thu Nov 01 02:55:57 2012 +0000 +++ b/GSwifi_net.h Tue Nov 06 08:54:19 2012 +0000 @@ -14,6 +14,7 @@ #define _GSWIFI_NET_H_ #include "mbed.h" +#include "host.h" // GSwifi_smtp.cpp #define SMTP_TIMEOUT 15000 @@ -25,18 +26,21 @@ #define HTTPD_URI_SIZE 50 #define HTTPD_KEEPALIVE 5 -typedef void (*onHttpdCgiFunc)(int cid, char *file, char *post, int len); - struct GS_httpd { int mode; int type; - char *buf; - int len; + char *buf; // body + int len; // length of buf char *uri; - int length; + char *file; + char *query; + int length; // content-length int keepalive; + Host host; }; +typedef void (*onHttpdCgiFunc)(int cid, GS_httpd *gshttpd); + struct GS_httpd_handler { char *uri; char *dir;