ESP32-S3 BLE connection not working after upgrade from 1.4.3 to 2.3.7 #1074
-
|
Good mornig, It does not connect when upgrading to 2.3.7 version, I receive a: and Any idea what could be the problem with new library? Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Answer after a slow debug proces and compare with the old version. `/**
Connection can be called without the MTU exchange using optional argument:
SOLUTION: call connect method with false args: |
Beta Was this translation helpful? Give feedback.
Answer after a slow debug proces and compare with the old version.
Version 2.x has a MTU exchange function which is called early during the connection phase.
Version 1.4 does not do any MTU exchange at connection start.
`/**
@brief Begin the MTU exchange process with the server.
@returns true if the request was sent successfully.
*/
bool NimBLEClient::exchangeMTU() {
int rc = ble_gattc_exchange_mtu(m_connHandle, NimBLEClient::exchangeMTUCb, this);
if (rc != 0) {
NIMBLE_LOGE(LOG_TAG, "MTU exchange error; rc=%d %s", rc, NimBLEUtils::returnCodeToString(rc));
m_lastErr = rc;
return false;
}
return true;
} // exchangeMTU`
Connection can be called without the MTU exchange using optional a…