Host library for controlling a WiConnect enabled Wi-Fi module.

Dependents:   wiconnect-ota_example wiconnect-web_setup_example wiconnect-test-console wiconnect-tcp_server_example ... more

Revision:
13:2b51f5267c92
Parent:
11:ea484e1b7fc4
Child:
16:7f1d6d359787
--- a/internal/network/NetworkJoin.cpp	Tue Aug 12 02:44:34 2014 -0700
+++ b/internal/network/NetworkJoin.cpp	Wed Aug 13 03:14:30 2014 -0700
@@ -98,6 +98,12 @@
         int32_t status;
         if(!WICONNECT_FAILED(result, wiconnect->responseToInt32(&status)))
         {
+            if(status != NETWORK_STATUS_DOWN)
+            {
+#ifdef WICONNECT_ASYNC_TIMER_ENABLED
+                monitorTimer.stop();
+#endif
+            }
             *statusPtr = (NetworkStatus)status;
         }
     }