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:
37:0ceb2dfc746c
Parent:
36:9d48ec522cb4
Child:
41:69998003d95a
--- a/UbloxATCellularInterface.cpp	Mon Aug 19 17:36:04 2019 +0500
+++ b/UbloxATCellularInterface.cpp	Wed Oct 09 14:48:57 2019 +0500
@@ -346,9 +346,10 @@
                                                        nsapi_security_t auth)
 {
     bool success = false;
+
+#ifndef TARGET_UBLOX_C030_R41XM
     int at_timeout = _at_timeout;
 
-#ifndef TARGET_UBLOX_C030_R41XM
     if (_at->send("AT+CGDCONT=%d,\"IP\",\"%s\"", cid, apn) && _at->recv("OK") &&
         _at->send("AT+UAUTHREQ=%d,%d,\"%s\",\"%s\"", cid, nsapi_security_to_modem_security(auth),
                   username, password) && _at->recv("OK") &&