ublox-at-cellular-interface_psm

Dependents:  

Files at this revision

API Documentation at this revision

Comitter:
mudassar0121
Date:
Tue Feb 04 16:32:27 2020 +0500
Parent:
42:98808477a691
Commit message:
file updated

Changed in this revision

UbloxATCellularInterface.cpp Show annotated file Show diff for this revision Revisions of this file
UbloxATCellularInterface.h Show annotated file Show diff for this revision Revisions of this file
--- a/UbloxATCellularInterface.cpp	Mon Jan 06 14:29:40 2020 +0500
+++ b/UbloxATCellularInterface.cpp	Tue Feb 04 16:32:27 2020 +0500
@@ -701,7 +701,7 @@
         LOCK();
 
         if (_at->send("AT+USOWR=%d,%d", socket->modem_handle, blk) && _at->recv("@")) {
-            ThisThread::sleep_for(50);
+            wait_ms(50);
             if ((_at->write(buf, blk) < (int) blk) ||
                  !_at->recv("OK")) {
                 success = false;
@@ -756,7 +756,7 @@
         if (_at->send("AT+USOST=%d,\"%s\",%d,%d", socket->modem_handle,
                       address.get_ip_address(), address.get_port(), blk) &&
             _at->recv("@")) {
-            ThisThread::sleep_for(50);
+            wait_ms(50);
             if ((_at->write(buf, blk) >= (int) blk) &&
                  _at->recv("OK")) {
             } else {
@@ -1379,28 +1379,6 @@
     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()
 {
--- a/UbloxATCellularInterface.h	Mon Jan 06 14:29:40 2020 +0500
+++ b/UbloxATCellularInterface.h	Tue Feb 04 16:32:27 2020 +0500
@@ -233,34 +233,22 @@
      *  @return         Null-terminated representation of the local IP address
      *                  or null if no IP address has been received.
      */
-    MBED_DEPRECATED_SINCE("mbed-os-5.15", "String-based APIs are deprecated")
     virtual const char *get_ip_address();
 
-    /** @copydoc NetworkInterface::get_ip_address */
-    virtual nsapi_error_t get_ip_address(SocketAddress *address);
-
     /** Get the local network mask.
      *
      *  @return         Null-terminated representation of the local network mask
      *                  or null if no network mask has been received.
      */
-    MBED_DEPRECATED_SINCE("mbed-os-5.15", "String-based APIs are deprecated")
     virtual const char *get_netmask();
 
-    /** @copydoc NetworkInterface::get_netmask */
-    virtual nsapi_error_t get_netmask(SocketAddress *address);
-
     /** Get the local gateways.
      *
      *  @return         Null-terminated representation of the local gateway
      *                  or null if no network mask has been received.
      */
-    MBED_DEPRECATED_SINCE("mbed-os-5.15", "String-based APIs are deprecated")
     virtual const char *get_gateway();
 
-    /** @copydoc NetworkInterface::get_gateway */
-    virtual nsapi_error_t get_gateway(SocketAddress *address);
-
     /** Call back in case connection is lost.
      *
      * @param cb     The function to call.