Skip to content

Commit cb61fc5

Browse files
authored
Merge pull request #4333 from artokin/thread_interface_timeout
Adjust Thread interface connect timeout
2 parents 6a2d1bf + 28a6fa1 commit cb61fc5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ int ThreadInterface::connect()
3939
// Release mutex before blocking
4040
nanostack_unlock();
4141

42-
int32_t count = connect_semaphore.wait(30000);
42+
// In Thread wait connection for ever:
43+
// -routers will create new network and get local connectivity
44+
// -end devices will get connectivity once attached to existing network
45+
// -devices without network settings gets connectivity once commissioned and attached to network
46+
int32_t count = connect_semaphore.wait(osWaitForever);
4347

4448
if (count <= 0) {
4549
return NSAPI_ERROR_DHCP_FAILURE; // sort of...

0 commit comments

Comments
 (0)