ublox-at-cellular-interface

Revision:
36:9d48ec522cb4
Parent:
34:ca02f8448085
--- a/UbloxATCellularInterface.cpp	Thu Aug 08 17:32:28 2019 +0500
+++ b/UbloxATCellularInterface.cpp	Mon Aug 19 17:36:04 2019 +0500
@@ -441,7 +441,8 @@
 
     at_timeout = _at_timeout; // Has to be inside LOCK()s
     at_set_timeout(150000);
-    if (_at->send("AT+CGACT?") && _at->recv("+CGACT: %*d,%d\n", &active)) {
+    if (_at->send("AT+CGACT?") && _at->recv("+CGACT: %*d,%d\n", &active) &&
+            _at->recv("OK")) {
         if (active == 1) {
         	status = true;
         }