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:
19:7013521e75e7
Parent:
18:1f34f8d0c850
Child:
21:2a500a881a5a
Child:
24:35d5b2a02df8
--- a/UbloxATCellularInterface.cpp	Fri Jan 25 11:40:36 2019 +0500
+++ b/UbloxATCellularInterface.cpp	Wed Jan 30 16:37:21 2019 +0500
@@ -1120,8 +1120,11 @@
 nsapi_error_t UbloxATCellularInterface::disconnect()
 {
     nsapi_error_t nsapi_error = NSAPI_ERROR_DEVICE_ERROR;
-
+#ifdef TARGET_UBLOX_C030_R41XM
+    if (nwk_deregistration()) {
+#else
     if (disconnect_modem_stack() && nwk_deregistration()) {
+#endif
         nsapi_error = NSAPI_ERROR_OK;
     }