mirror of https://github.com/ARMmbed/mbed-os.git
Cellular: Fix trace to use new SocketAddress based get_ip_address
String based get_ip_address has been removed and SocketAddress based must be used.pull/12506/head
parent
f4df4e75ea
commit
6e1f7bf1f9
|
@ -985,7 +985,9 @@ void AT_CellularContext::cellular_callback(nsapi_event_t ev, intptr_t ptr)
|
|||
#if NSAPI_PPP_AVAILABLE
|
||||
if (_is_blocking) {
|
||||
if (ev == NSAPI_EVENT_CONNECTION_STATUS_CHANGE && ptr == NSAPI_STATUS_GLOBAL_UP) {
|
||||
tr_info("CellularContext IP %s", get_ip_address());
|
||||
SocketAddress addr;
|
||||
get_ip_address(&addr);
|
||||
tr_info("CellularContext IP %s", addr.get_ip_address());
|
||||
_cb_data.error = NSAPI_ERROR_OK;
|
||||
} else if (ev == NSAPI_EVENT_CONNECTION_STATUS_CHANGE && ptr == NSAPI_STATUS_DISCONNECTED) {
|
||||
tr_info("cellular_callback: PPP mode and NSAPI_STATUS_DISCONNECTED");
|
||||
|
|
Loading…
Reference in New Issue