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 9f8fe89 commit 3d5962dCopy full SHA for 3d5962d
features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackInterface.cpp
@@ -457,8 +457,10 @@ NanostackInterface * NanostackInterface::get_stack()
457
458
const char * NanostackInterface::get_ip_address()
459
{
460
- // Unsupported
461
- return NULL;
+ // Must result a valid IPv6 address
+ // For gethostbyname() to detect IP version.
462
+ static const char localhost[] = "::";
463
+ return localhost;
464
}
465
466
nsapi_error_t NanostackInterface::socket_open(void **handle, nsapi_protocol_t protocol)
0 commit comments