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:
12:ff6fac481487
Parent:
10:ba18f4418ee8
Child:
13:39264b492ce7
--- a/UbloxATCellularInterface.cpp	Mon Oct 30 14:48:14 2017 +0000
+++ b/UbloxATCellularInterface.cpp	Tue Jan 09 13:20:44 2018 +0000
@@ -990,12 +990,11 @@
 }
 
 // Set PIN.
-void UbloxATCellularInterface::set_sim_pin(const char *pin) {
+void UbloxATCellularInterface::set_sim_pin(const char *pin)
+{
     set_pin(pin);
 }
 
-static int count = 0;
-
 // Get the IP address of a host.
 nsapi_error_t UbloxATCellularInterface::gethostbyname(const char *host,
                                                       SocketAddress *address,
@@ -1005,7 +1004,6 @@
     int at_timeout;
     char ipAddress[NSAPI_IP_SIZE];
 
-    count++;
     if (address->set_ip_address(host)) {
         nsapi_error = NSAPI_ERROR_OK;
     } else {