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_sock.cpp
- Revision:
- 34:f5f40c92af00
- Parent:
- 31:0abdc584823d
- Child:
- 36:a70b11e1560f
--- 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; }