GainSpan Wi-Fi library see: http://mbed.org/users/gsfan/notebook/gainspan_wifi/
Fork of GSwifi_old 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/
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
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