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

Conversation

h2zero
Copy link
Owner

@h2zero h2zero commented Nov 4, 2024

  • 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 h2zero force-pushed the async-client branch 4 times, most recently from e92d2df to f5fc5ff Compare November 10, 2024 19:33
* 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 h2zero merged commit bf2e402 into master Nov 10, 2024
31 checks passed
@h2zero h2zero deleted the async-client branch November 10, 2024 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant