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

Files at this revision

API Documentation at this revision

Comitter:
mudassar0121
Date:
Mon Jan 06 14:43:04 2020 +0500
Parent:
34:4f08b9dd8d03
Child:
36:5392f412d2b0
Commit message:
Replaced depreciated wait_ms with ThisThread::sleep_for

Changed in this revision

TESTS/unit_tests/cell-locate/main.cpp Show annotated file Show diff for this revision Revisions of this file
TESTS/unit_tests/ftp/main.cpp Show annotated file Show diff for this revision Revisions of this file
TESTS/unit_tests/http/main.cpp Show annotated file Show diff for this revision Revisions of this file
UbloxATCellularInterfaceExt.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/TESTS/unit_tests/cell-locate/main.cpp	Fri Jan 03 15:46:29 2020 +0500
+++ b/TESTS/unit_tests/cell-locate/main.cpp	Mon Jan 06 14:43:04 2020 +0500
@@ -196,7 +196,7 @@
 
     TEST_ASSERT(pDriver->disconnect() == 0);
     // Wait for printfs to leave the building or the test result string gets messed up
-    wait_ms(500);
+    ThisThread::sleep_for(500);
 }
 
 // Test Cell Locate talking to a TCP server
@@ -227,7 +227,7 @@
 
     TEST_ASSERT(pDriver->disconnect() == 0);
     // Wait for printfs to leave the building or the test result string gets messed up
-    wait_ms(500);
+    ThisThread::sleep_for(500);
 }
 
 // Tidy up after testing so as not to screw with the test output strings
--- a/TESTS/unit_tests/ftp/main.cpp	Fri Jan 03 15:46:29 2020 +0500
+++ b/TESTS/unit_tests/ftp/main.cpp	Mon Jan 06 14:43:04 2020 +0500
@@ -220,7 +220,7 @@
             TEST_ASSERT(pDriver->set_mno_profile(UbloxATCellularInterface::STANDARD_EU));
             TEST_ASSERT(pDriver->reboot_modem());
             tr_debug("Reboot successful\n");
-            wait_ms(5000);
+            ThisThread::sleep_for(5000);
         }
     }
     TEST_ASSERT(pDriver->init(MBED_CONF_APP_DEFAULT_PIN));
@@ -500,7 +500,7 @@
     TEST_ASSERT(pDriver->disconnect() == 0);
 
     // Wait for printfs to leave the building or the test result string gets messed up
-    wait_ms(500);
+    ThisThread::sleep_for(500);
 }
 
 // ----------------------------------------------------------------
--- a/TESTS/unit_tests/http/main.cpp	Fri Jan 03 15:46:29 2020 +0500
+++ b/TESTS/unit_tests/http/main.cpp	Mon Jan 06 14:43:04 2020 +0500
@@ -124,7 +124,7 @@
             TEST_ASSERT(pDriver->set_mno_profile(UbloxATCellularInterface::STANDARD_EU));
             TEST_ASSERT(pDriver->reboot_modem());
             tr_debug("Reboot successful\n");
-            wait_ms(5000);
+            ThisThread::sleep_for(5000);
         }
     }
     TEST_ASSERT(pDriver->init(MBED_CONF_APP_DEFAULT_PIN));
@@ -220,7 +220,7 @@
     TEST_ASSERT(pDriver->httpFreeProfile(profile));
     TEST_ASSERT(pDriver->disconnect() == 0);
     // Wait for printfs to leave the building or the test result string gets messed up
-    wait_ms(500);
+    ThisThread::sleep_for(500);
 
 #ifdef TARGET_UBLOX_C027
     pDriver->set_functionality_mode(UbloxATCellularInterfaceExt::FUNC_MIN);
@@ -273,7 +273,7 @@
     TEST_ASSERT(pDriver->httpFreeProfile(profile));
     TEST_ASSERT(pDriver->disconnect() == 0);
     // Wait for printfs to leave the building or the test result string gets messed up
-    wait_ms(500);
+    ThisThread::sleep_for(500);
 
 #ifdef TARGET_UBLOX_C027
     pDriver->set_functionality_mode(UbloxATCellularInterfaceExt::FUNC_MIN);
@@ -341,7 +341,7 @@
 
     TEST_ASSERT(pDriver->disconnect() == 0);
     // Wait for printfs to leave the building or the test result string gets messed up
-    wait_ms(500);
+    ThisThread::sleep_for(500);
 }
 
 // ----------------------------------------------------------------
--- a/UbloxATCellularInterfaceExt.cpp	Fri Jan 03 15:46:29 2020 +0500
+++ b/UbloxATCellularInterfaceExt.cpp	Mon Jan 06 14:43:04 2020 +0500
@@ -713,7 +713,7 @@
                     _httpProfiles[httpProfile].pending = false;
                     if (_httpProfiles[httpProfile].result == 1) {
                         // Leave a short delay to make sure the file has been written
-                        wait_ms(100);
+                        ThisThread::sleep_for(100);
                         // HTTP command successfully executed
                         read_length = readFile(rspFile, buf, len);