mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-10 18:24:27 +05:00
refactor: increased timeout for nimble
This commit is contained in:
@@ -450,9 +450,9 @@ protected:
|
|||||||
* Set initial connection parameters:
|
* Set initial connection parameters:
|
||||||
* These settings are safe for 3 clients to connect reliably, can go faster if you have less
|
* These settings are safe for 3 clients to connect reliably, can go faster if you have less
|
||||||
* connections. Timeout should be a multiple of the interval, minimum is 100ms.
|
* connections. Timeout should be a multiple of the interval, minimum is 100ms.
|
||||||
* Min interval: 12 * 1.25ms = 15, Max interval: 12 * 1.25ms = 15, 0 latency, 150 * 10ms = 1500ms timeout
|
* Min interval: 12 * 1.25ms = 15, Max interval: 12 * 1.25ms = 15, 0 latency, 1000 * 10ms = 10000ms timeout
|
||||||
*/
|
*/
|
||||||
pClient->setConnectionParams(12, 12, 0, 150);
|
pClient->setConnectionParams(12, 12, 0, 1000);
|
||||||
pClient->setConnectTimeout(5000);
|
pClient->setConnectTimeout(5000);
|
||||||
pClient->setSelfDelete(false, true);
|
pClient->setSelfDelete(false, true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user