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_smtp.cpp
- Revision:
- 20:151b5a4fdd29
- Parent:
- 19:cad912f5a6ba
- Child:
- 21:1270827d431a
--- a/GSwifi_smtp.cpp Tue Nov 06 08:54:19 2012 +0000 +++ b/GSwifi_smtp.cpp Thu Nov 08 01:28:45 2012 +0000 @@ -2,6 +2,8 @@ #include "mbed.h" #include "GSwifi.h" +#ifdef GS_USE_SMTP + int GSwifi::mail (Host &host, const char *to, const char *from, const char *subject, const char *mesg, const char *user, const char *pwd) { int ret = -1; int cid; @@ -72,7 +74,7 @@ int GSwifi::wait_smtp (int cid, int code) { Timer timeout; int i, n, len = 0; - char buf[500], data[100]; + char buf[200], data[100]; // wait responce timeout.start(); @@ -105,3 +107,5 @@ return -1; } + +#endif