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_http.cpp
- Revision:
- 37:e61ea8267415
- Parent:
- 36:a70b11e1560f
--- a/GSwifi_http.cpp Mon Jun 24 07:36:48 2013 +0000 +++ b/GSwifi_http.cpp Wed Jun 26 02:39:59 2013 +0000 @@ -121,12 +121,14 @@ sprintf(cmd, "AT+HTTPSEND=%d,3,%d,%s,%d", _cid, GS_TIMEOUT / 1000, uri, len); // POST command(cmd, GSRES_NORMAL); + if (acquireUart()) return -1; sprintf(cmd, "\x1bH%X", _cid); _gs_puts(cmd); for (i = 0; i < len; i ++) { _gs_putc(body[i]); DBG("%c", body[i]); } + releaseUart(); return _cid; }