We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b05c90 commit 3c1f205Copy full SHA for 3c1f205
main.cpp
@@ -89,10 +89,11 @@ int main()
89
return error;
90
}
91
92
- while (NULL == mesh->get_ip_address())
+ SocketAddress sockAddr;
93
+ while (NSAPI_ERROR_OK != mesh->get_ip_address(&sockAddr))
94
ThisThread::sleep_for(500);
95
- printf("Connected. IP = %s\n", mesh->get_ip_address());
96
+ printf("Connected. IP = %s\n", sockAddr.get_ip_address());
97
98
#if MBED_CONF_APP_ENABLE_LED_CONTROL_EXAMPLE
99
// Network found, start socket example
0 commit comments