Skip to content

Commit 7559f18

Browse files
KariHaapalehtoadbridge
authored andcommitted
- 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 94aea46 commit 7559f18

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)