ublox-at-cellular-interface_psm

Dependents:  

Revision:
43:cdd202c7177a
Parent:
42:98808477a691
--- 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()
 {