@@ -112,10 +112,10 @@ static uint32_t userOnPassKeyRequest()
112
112
* 0 latency (Number of intervals allowed to skip),
113
113
* TimeOut (unit: 10ms) 51 * 10ms = 510ms. Timeout should be minimum 100ms.
114
114
*/
115
- #define BLEMIDI_CLIENT_COMM_MIN_INTERVAL 6 // 7.5ms
116
- #define BLEMIDI_CLIENT_COMM_MAX_INTERVAL 35 // 40ms
117
- #define BLEMIDI_CLIENT_COMM_LATENCY 0 //
118
- #define BLEMIDI_CLIENT_COMM_TIMEOUT 200 // 2000ms
115
+ #define BLEMIDI_CLIENT_COMM_MIN_INTERVAL 6 // 7.5ms
116
+ #define BLEMIDI_CLIENT_COMM_MAX_INTERVAL 35 // 40ms
117
+ #define BLEMIDI_CLIENT_COMM_LATENCY 0 //
118
+ #define BLEMIDI_CLIENT_COMM_TIMEOUT 200 // 2000ms
119
119
120
120
/*
121
121
#############################################
@@ -322,7 +322,7 @@ class MyClientCallbacks : public BLEClientCallbacks
322
322
void onConnect (BLEClient *pClient)
323
323
{
324
324
// Serial.println("##Connected##");
325
- pClient->updateConnParams (BLEMIDI_CLIENT_COMM_MIN_INTERVAL, BLEMIDI_CLIENT_COMM_MAX_INTERVAL, BLEMIDI_CLIENT_COMM_LATENCY, BLEMIDI_CLIENT_COMM_TIMEOUT);
325
+ // pClient->updateConnParams(BLEMIDI_CLIENT_COMM_MIN_INTERVAL, BLEMIDI_CLIENT_COMM_MAX_INTERVAL, BLEMIDI_CLIENT_COMM_LATENCY, BLEMIDI_CLIENT_COMM_TIMEOUT);
326
326
vTaskDelay (1 );
327
327
if (_bluetoothEsp32)
328
328
{
@@ -358,10 +358,11 @@ class MyClientCallbacks : public BLEClientCallbacks
358
358
{ /* * Number of intervals allowed to skip */
359
359
return false ;
360
360
}
361
- else if (params->supervision_timeout > BLEMIDI_CLIENT_COMM_TIMEOUT + 10 )
361
+ else if (params->supervision_timeout > BLEMIDI_CLIENT_COMM_TIMEOUT)
362
362
{ /* * 10ms units */
363
363
return false ;
364
364
}
365
+ pClient->updateConnParams (params->itvl_min , params->itvl_max , params->latency , params->supervision_timeout );
365
366
366
367
return true ;
367
368
};
0 commit comments