Skip to content

Commit 0977105

Browse files
Remove deprecated string-based API
1 parent b720897 commit 0977105

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,11 @@ int main()
8989
return error;
9090
}
9191

92-
while (NULL == mesh->get_ip_address())
92+
SocketAddress sockAddr;
93+
while (NSAPI_ERROR_OK != mesh->get_ip_address(&sockAddr))
9394
ThisThread::sleep_for(500);
9495

95-
printf("Connected. IP = %s\n", mesh->get_ip_address());
96+
printf("Connected. IP = %s\n", sockAddr.get_ip_address());
9697

9798
#if MBED_CONF_APP_ENABLE_LED_CONTROL_EXAMPLE
9899
// Network found, start socket example

mbed-os.lib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://github.com/ARMmbed/mbed-os/#679d24833acf0a0b5b0d528576bb37c70863bc4e
1+
https://github.com/ARMmbed/mbed-os/#888dfffabf9e77320ca0de5f2139f8b204043adc

0 commit comments

Comments
 (0)