[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
Kari 2017-06-29 11:02:04 +03:00
parent c08864b588
commit 3c44a20dd0
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}
}