Skip to content

Commit 6e1f7bf

Browse files
author
Kimmo Vaisanen
committed
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.
1 parent f4df4e7 commit 6e1f7bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

features/cellular/framework/AT/AT_CellularContext.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,9 @@ void AT_CellularContext::cellular_callback(nsapi_event_t ev, intptr_t ptr)
985985
#if NSAPI_PPP_AVAILABLE
986986
if (_is_blocking) {
987987
if (ev == NSAPI_EVENT_CONNECTION_STATUS_CHANGE && ptr == NSAPI_STATUS_GLOBAL_UP) {
988-
tr_info("CellularContext IP %s", get_ip_address());
988+
SocketAddress addr;
989+
get_ip_address(&addr);
990+
tr_info("CellularContext IP %s", addr.get_ip_address());
989991
_cb_data.error = NSAPI_ERROR_OK;
990992
} else if (ev == NSAPI_EVENT_CONNECTION_STATUS_CHANGE && ptr == NSAPI_STATUS_DISCONNECTED) {
991993
tr_info("cellular_callback: PPP mode and NSAPI_STATUS_DISCONNECTED");

0 commit comments

Comments
 (0)