This class adds HTTP, FTP and CellLocate client support for u-blox modules for the C027 and C030 boards (excepting the C030 N2xx flavour) from mbed 5.5 onwards. The HTTP, FTP and CellLocate operations are all hosted on the module, minimizing RAM consumption in the mbed MCU. It also sub-classes ublox-cellular-driver-gen to bring in SMS, USSD and modem file system support if you need to use these functions at the same time as the cellular interface.

Dependencies:   ublox-at-cellular-interface

Dependents:   example-ublox-at-cellular-interface-ext HelloMQTT ublox_new_driver_test example-ublox-at-cellular-interface-ext ... more

Revision:
30:da746bc48735
Parent:
27:12b47e78f601
Child:
34:4f08b9dd8d03
--- a/TESTS/unit_tests/ftp/main.cpp	Tue Aug 27 12:32:11 2019 +0500
+++ b/TESTS/unit_tests/ftp/main.cpp	Fri Oct 11 15:35:03 2019 +0500
@@ -211,8 +211,23 @@
     char portString[10];
 
     sprintf(portString, "%d", MBED_CONF_APP_FTP_SERVER_PORT);
-
+#ifdef TARGET_UBLOX_C030_R41XM
+    int mno_profile;
+    if (pDriver->init(MBED_CONF_APP_DEFAULT_PIN) == false) //init can return false if profile set is SW_DEFAULT
+    {
+        TEST_ASSERT(pDriver->get_mno_profile(&mno_profile));
+        if (mno_profile == UbloxATCellularInterface::SW_DEFAULT) {
+            TEST_ASSERT(pDriver->set_mno_profile(UbloxATCellularInterface::STANDARD_EU));
+            TEST_ASSERT(pDriver->reboot_modem());
+            tr_debug("Reboot successful\n");
+            wait_ms(5000);
+        }
+    }
     TEST_ASSERT(pDriver->init(MBED_CONF_APP_DEFAULT_PIN));
+    TEST_ASSERT(pDriver->disable_psm());
+#else
+    TEST_ASSERT(pDriver->init(MBED_CONF_APP_DEFAULT_PIN));
+#endif
 
     // Reset parameters to default to begin with
     pDriver->ftpResetPar();