-
Notifications
You must be signed in to change notification settings - Fork 716
custom event handlers #711
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
Labels
Comments
Few more logs. Maybe its not much, but we would be allowed to override build in mechanism to achieve better performance or add something that is missing in this library. I will for sure use it to debug code. Just a few lines of code:
Logs:
|
This was referenced Jun 1, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am planing to implement functions to register custom events handlers, one for each type(GAP, GATTS and GATTC). Usage will be similar to register notify callback. Add/register custom handler:
BLEDevice::setCustomGapHandler(my_gap_event_handler);
and function to handle events:
Function in action (logs):
This will allow to make library more flexible without increasing complexity and size. We can for example catch congestion events and take proper actions when we know that notify/indication cant be send.
The text was updated successfully, but these errors were encountered: