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:
41:69998003d95a
Parent:
37:0ceb2dfc746c
Child:
42:98808477a691
--- a/UbloxATCellularInterface.cpp	Fri Nov 22 19:45:14 2019 +0500
+++ b/UbloxATCellularInterface.cpp	Wed Jan 01 11:47:24 2020 +0500
@@ -1379,6 +1379,28 @@
     return _ip;
 }
 
+// Get the IP address of the on-board modem IP stack.
+nsapi_error_t UbloxATCellularInterface::get_ip_address(SocketAddress *address)
+{
+    address->set_ip_address(this->get_ip_address());
+
+    return NSAPI_ERROR_OK;
+}
+
+nsapi_error_t UbloxATCellularInterface::get_netmask(SocketAddress *address)
+{
+    address->set_ip_address("");
+
+    return NSAPI_ERROR_OK;
+}
+
+nsapi_error_t UbloxATCellularInterface::get_gateway(SocketAddress *address)
+{
+    address->set_ip_address(this->get_ip_address());
+
+    return NSAPI_ERROR_OK;
+}
+
 // Get the local network mask.
 const char *UbloxATCellularInterface::get_netmask()
 {