Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add asynchronous client connect and MTU exchange. #746

Merged
merged 1 commit into from
Nov 10, 2024
Merged

Commits on Nov 10, 2024

  1. Add asyncronous client connect and MTU exchange.

    * Adds parameters `asyncConnect` and `exchangeMTU` to `NimBLEClient::connect`, default values work as the original connect method.
    * * `asyncConnect`; if true, will send the connect command and return immediately with a true value for successfully sending the command, else false.
    * * `exchangeMTU`; if true will send the exchange MTU command upon connection, otherwise not and the application can choose to do this later via the `exchangeMTU` method.
    * Adds `onMTUChange` callback to `NimBLEClientCallbacks`
    * Add `NimBLEDevice::getConnectedClients()` which returns a vector of pointers to the currently connected client instances.
    * Calling `NimBLEClient::connect` will no longer cancel already in progress connections.
    h2zero authored and h2zero committed Nov 10, 2024
    Configuration menu
    Copy the full SHA
    1a56ebc View commit details
    Browse the repository at this point in the history