Skip to content

Commit 3c44a20

Browse files
[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 <[email protected]>
1 parent c08864b commit 3c44a20

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)