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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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

* 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`
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