UBLOX Tool Lahore / ublox-at-cellular-interface

Fork of ublox-at-cellular-interface by u-blox

Revision:
9:470a89265a6f
Parent:
7:3b2ca10cc23a
--- a/UbloxATCellularInterface.cpp	Thu Aug 03 13:31:32 2017 +0100
+++ b/UbloxATCellularInterface.cpp	Tue Aug 15 12:38:31 2017 +0500
@@ -276,6 +276,14 @@
                     at_set_timeout(30000);
                     activated = _at->send("AT+UPSDA=" PROFILE ",3") && _at->recv("OK");
                     at_set_timeout(at_timeout);
+
+                    if(!activated)
+                    {
+                    	// Activate, waiting 30 seconds for the connection to be made
+                    	at_set_timeout(30000);
+                    	activated = _at->send("AT+UPSDA=" PROFILE ",3") && _at->recv("OK");
+                    	at_set_timeout(at_timeout);
+                    }
                 }
             }
         }