-
Notifications
You must be signed in to change notification settings - Fork 7.8k
feat(ble): Add simultaneous client and server example #12141
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
Conversation
👋 Hello lucasssvaz, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description of Change
This pull request introduces a new BLE Client-Server coexistence example for the ESP32, demonstrating how to run both BLE client and server functionalities on a single device. The example allows an ESP32 to advertise its own BLE service while simultaneously scanning for and connecting to other BLE servers, enabling two-way communication between devices running the same code. Additionally, a CI configuration file is added to ensure the example is built with appropriate partition settings and only on compatible hardware.
Key additions and changes:
New BLE Client-Server Example:
Client_Server.ino, which implements simultaneous BLE server and client roles on the ESP32, including periodic characteristic updates, connection management, and notification handling. The example is well-documented and suitable for testing with two ESP32 boards.Continuous Integration Configuration:
ci.ymlto specify the use of thehuge_apppartition scheme and require BLE support or NimBLE support in the build environment, ensuring compatibility and successful builds on supported hardware.Test Scenarios
Locally with NimBLE and Bluedroid