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:
- 20:151b5a4fdd29
- Parent:
- 19:cad912f5a6ba
- Child:
- 22:9b077e2823ce
--- a/GSwifi_net.h Tue Nov 06 08:54:19 2012 +0000 +++ b/GSwifi_net.h Thu Nov 08 01:28:45 2012 +0000 @@ -16,15 +16,35 @@ #include "mbed.h" #include "host.h" +#define GS_USE_HTTPD // comment out if not use httpd +#define GS_USE_SMTP // comment out if not use smtp +#define GS_SYSLOG + + +#ifdef GS_SYSLOG +#define LOG(...) printf("" __VA_ARGS__) +#else +#define LOG(...) +#endif + // GSwifi_smtp.cpp +#ifdef GS_USE_SMTP + #define SMTP_TIMEOUT 15000 +#endif + + // GSwifi_httpd.cpp +#ifdef GS_USE_HTTPD + #define HTTPD_TIMEOUT 15000 #define HTTPD_HANDLE 10 -#define HTTPD_BUF_SIZE 100 + +#define HTTPD_BUF_SIZE 200 #define HTTPD_URI_SIZE 50 -#define HTTPD_KEEPALIVE 5 + +#define HTTPD_KEEPALIVE 10 // request count struct GS_httpd { int mode; @@ -48,3 +68,5 @@ }; #endif + +#endif