Skip to content
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@h2zero
Comment options

Answer selected by h2zero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants