Skip to content

Commit b685fe8

Browse files
authored
Merge pull request #4592 from KariHaapalehto/connect_timeout
[ONME-3089] - Adjust lowpan ND interface connect timeout
2 parents 1849370 + 3c44a20 commit b685fe8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/LoWPANNDInterface.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ int LoWPANNDInterface::connect()
3939
// Release mutex before blocking
4040
nanostack_unlock();
4141

42-
int32_t count = connect_semaphore.wait(30000);
42+
// wait connection for ever
43+
int32_t count = connect_semaphore.wait(osWaitForever);
4344

4445
if (count <= 0) {
4546
return NSAPI_ERROR_DHCP_FAILURE; // sort of...
@@ -124,4 +125,4 @@ bool LoWPANNDInterface::getRouterIpAddress(char *address, int8_t len)
124125
return true;
125126
}
126127
return false;
127-
}
128+
}

0 commit comments

Comments
 (0)