ublox-at-cellular-interface
Diff: UbloxATCellularInterface.cpp
- Revision:
- 41:69998003d95a
- Parent:
- 37:0ceb2dfc746c
- Child:
- 42:98808477a691
diff -r 9299d6d117f1 -r 69998003d95a UbloxATCellularInterface.cpp --- 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() {