gs fan / GSwifi

Dependents:   GSwifi_httpd GSwifi_websocket GSwifi_tcpclient GSwifi_tcpserver ... more

Fork of GSwifi by gs fan

Files at this revision

API Documentation at this revision

Comitter:
gsfan
Date:
Wed Dec 18 01:29:43 2013 +0000
Parent:
42:9b3c38d66fa8
Commit message:
fix reconnect

Changed in this revision

GSwifi.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/GSwifi.cpp	Wed Dec 18 01:16:04 2013 +0000
+++ b/GSwifi.cpp	Wed Dec 18 01:29:43 2013 +0000
@@ -658,7 +658,8 @@
         }
     }
 
-    if (t == 0 || timer.read() > _reconnect) {
+    if (_ssid && ! _connect)
+      if (t == 0 || timer.read() > _reconnect) {
         DBG("reconnect\r\n");
         if (reconnect()) {
             timer.reset();