Implementation of the CellularInterface for u-blox C027 and C030 (non-N2xx flavour) modems that uses the IP stack on-board the cellular modem, hence not requiring LWIP (and so less RAM) and allowing any AT command exchanges to be carried out at the same time as data transfers (since the modem remains in AT mode all the time). This library may be used from mbed 5.5 onwards. If you need to use SMS, USSD or access the modem file system at the same time as using the CellularInterface then use ublox-at-cellular-interface-ext instead.

Dependents:   example-ublox-cellular-interface example-ublox-cellular-interface_r410M example-ublox-mbed-client example-ublox-cellular-interface ... more

Revision:
27:3d709ee8c3e1
Parent:
23:9098a541452b
Child:
30:0f571a4920c8
--- a/TESTS/unit_tests/default/main.cpp	Wed May 22 16:14:50 2019 +0500
+++ b/TESTS/unit_tests/default/main.cpp	Thu May 23 13:07:14 2019 +0500
@@ -1080,7 +1080,7 @@
     if (interface->is_registered_csd() || interface->is_registered_psd() || interface->is_registered_eps()) {
         tr_error("RAT should only be set in detached state");
         // Deregister from Network
-        TEST_ASSERT(interface->nwk_deregistration());
+        drop_connection(interface);
     }
 
     // Get and store initial RAT set on modem
@@ -1125,7 +1125,7 @@
     TEST_ASSERT(interface->connect(MBED_CONF_APP_DEFAULT_PIN, MBED_CONF_APP_APN,
                                    MBED_CONF_APP_USERNAME, MBED_CONF_APP_PASSWORD) == 0);
 
-    TEST_ASSERT(interface->nwk_deregistration());
+    drop_connection(interface);
 }
 
 
@@ -1159,7 +1159,7 @@
     if (interface->is_registered_csd() || interface->is_registered_psd() || interface->is_registered_eps()) {
         tr_error("MNO profile should only be set in detached state");
         // Deregister from Network
-        TEST_ASSERT(interface->nwk_deregistration());
+        drop_connection(interface);
     }
 
     // Getting current mno profile
@@ -1184,7 +1184,7 @@
     TEST_ASSERT(interface->connect(MBED_CONF_APP_DEFAULT_PIN, MBED_CONF_APP_APN,
                                    MBED_CONF_APP_USERNAME, MBED_CONF_APP_PASSWORD) == 0);
 
-    TEST_ASSERT(interface->nwk_deregistration());
+    drop_connection(interface);
 
     // Restore MNO profile to previous settings
     TEST_ASSERT(interface->set_mno_profile((UbloxATCellularInterface::MNOProfile)previous_profile));