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/
Revision 34:f5f40c92af00, committed 2013-03-29
- Comitter:
- gsfan
- Date:
- Fri Mar 29 14:58:07 2013 +0000
- Parent:
- 33:b5a5a1e6325f
- Child:
- 35:515ec79792d3
- Commit message:
- fix open
Changed in this revision
GSwifi_sock.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/GSwifi_sock.cpp Wed Mar 13 01:22:38 2013 +0000 +++ b/GSwifi_sock.cpp Fri Mar 29 14:58:07 2013 +0000 @@ -44,7 +44,12 @@ char cmd[GS_CMD_SIZE]; if (! _connect || _status != GSSTAT_READY) return -1; - if (host.getIp().isNull() || host.getPort() == 0) { + if (host.getIp().isNull()) { + if (getHostByName(host)) { + if (getHostByName(host)) return -1; + } + } + if (host.getPort() == 0) { return -1; }