mirror of https://github.com/ARMmbed/mbed-os.git
[ONME-3089] - Adjust lowpan ND interface connect timeout
Device needs to wait for connectivity: -routers will create new network and get local connectivity -end device will get connectivity once attached to existing network -devices without network settings gets connectivity once commissioned and attached to network Signed-off-by: Kari <kari.haapalehto@arm.com>pull/4592/head
parent
c08864b588
commit
3c44a20dd0
|
@ -39,7 +39,8 @@ int LoWPANNDInterface::connect()
|
|||
// Release mutex before blocking
|
||||
nanostack_unlock();
|
||||
|
||||
int32_t count = connect_semaphore.wait(30000);
|
||||
// wait connection for ever
|
||||
int32_t count = connect_semaphore.wait(osWaitForever);
|
||||
|
||||
if (count <= 0) {
|
||||
return NSAPI_ERROR_DHCP_FAILURE; // sort of...
|
||||
|
@ -124,4 +125,4 @@ bool LoWPANNDInterface::getRouterIpAddress(char *address, int8_t len)
|
|||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue