-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
fix(esp32): Added a timeout option to the BLEClient's connect function #9005
Conversation
👋 Hello LiveSparks, we appreciate your contribution to this project! Click to see more instructions ...
Review and merge process you can expect ...
|
Hello @LiveSparks, thanks for the PR. Please sign CLA and update the Pull Request name to follow Conventional commits style. Thanks! |
Done. Let me know if I have missed something or done anything wrong. |
Co-authored-by: Lucas Saavedra Vaz <[email protected]>
Description of Change
The connect function used to wait for portMAX_DELAY at the last
rc = m_semaphoreOpenEvt.wait("connect");
line.I have modified it such that now a timeoutMs parameter can be passed.
Tests scenarios
Tested this on ESP32C3 boards running a complex BLE application involving Scanning, Server, and Client functionality.
Related links
Could not find a relevant issue in this repo but one issue was open in nkolban's repo: link
The same issue is also mentioned in this unsolved stackoverflow question.
Example Usage
This is a snippet from my application. Will not work without modification.