Update Communication Parameters
This commit is contained in:
parent
6ea32b340f
commit
b3df11a0ea
|
|
@ -322,7 +322,7 @@ protected:
|
||||||
void onConnect(BLEClient *pClient)
|
void onConnect(BLEClient *pClient)
|
||||||
{
|
{
|
||||||
//Serial.println("##Connected##");
|
//Serial.println("##Connected##");
|
||||||
pClient->updateConnParams(BLEMIDI_CLIENT_COMM_MIN_INTERVAL, BLEMIDI_CLIENT_COMM_MAX_INTERVAL, BLEMIDI_CLIENT_COMM_LATENCY, BLEMIDI_CLIENT_COMM_TIMEOUT);
|
//pClient->updateConnParams(BLEMIDI_CLIENT_COMM_MIN_INTERVAL, BLEMIDI_CLIENT_COMM_MAX_INTERVAL, BLEMIDI_CLIENT_COMM_LATENCY, BLEMIDI_CLIENT_COMM_TIMEOUT);
|
||||||
vTaskDelay(1);
|
vTaskDelay(1);
|
||||||
if (_bluetoothEsp32)
|
if (_bluetoothEsp32)
|
||||||
{
|
{
|
||||||
|
|
@ -358,10 +358,11 @@ protected:
|
||||||
{ /** Number of intervals allowed to skip */
|
{ /** Number of intervals allowed to skip */
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if (params->supervision_timeout > BLEMIDI_CLIENT_COMM_TIMEOUT + 10)
|
else if (params->supervision_timeout > BLEMIDI_CLIENT_COMM_TIMEOUT)
|
||||||
{ /** 10ms units */
|
{ /** 10ms units */
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
pClient->updateConnParams(params->itvl_min, params->itvl_max, params->latency, params->supervision_timeout);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue