You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I request the minimal connection parameters (7.5ms interval, 0 latency) upon connection. I have an Android app which connects and communicates frequently with the ESP32. In the main loop, I periodically print the connection parameters in the main loop. I expect to see the interval be set to 6, latency set to 0, timeout set to 100. Instead, I see interval set to 9, latency set to 0, and timeout set to 100 when successful. Around half the time, I instead see interval set to 40, latency set to 0, timeout set to 500 (which is the default before updating the connection parameters).
Sketch
Set the connection parameters on connect
classServerCallbacks : publicBLEServerCallbacks {
voidonConnect(BLEServer* server, esp_ble_gatts_cb_param_t* param) {
// set the connection interval to the minimum of 7.5ms (6 * 1.25ms)
server->updateConnParams(param->connect.remote_bda, 6, 6, 0, 100);
};
...
};
We are currently working on refactoring the ESP32 Arduino BLE Library.
It will be based on NimBLE instead of Bluedroid.
We expect to fix many issues, including a smaller firmware size.
This issue may be fixed after copleting the refactoring work.
Please follow it in #9878
Board
ESP32-C3-DevKitM-1
Device Description
Plain module
Hardware Configuration
No
Version
v3.0.4
IDE Name
VSCode
Operating System
Ubuntu 24.04
Flash frequency
40MHz
PSRAM enabled
yes
Upload speed
115200
Description
I request the minimal connection parameters (7.5ms interval, 0 latency) upon connection. I have an Android app which connects and communicates frequently with the ESP32. In the main loop, I periodically print the connection parameters in the main loop. I expect to see the interval be set to 6, latency set to 0, timeout set to 100. Instead, I see interval set to 9, latency set to 0, and timeout set to 100 when successful. Around half the time, I instead see interval set to 40, latency set to 0, timeout set to 500 (which is the default before updating the connection parameters).
Sketch
Set the connection parameters on connect
Print the connection parameters periodically
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: