-
Notifications
You must be signed in to change notification settings - Fork 3k
Ble: generic event filter #5299
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
@marcbonnici @nvlsianpu @apalmieriGH Could you review this PR ? |
Build : SUCCESSBuild number : 125 Triggering tests/test mbed-os |
features/FEATURE_BLE/source/BLE.cpp
Outdated
transport->processEvents(); | ||
} | ||
|
||
void BLE::onEventsToProcess(const BLE::OnEventsToProcessCallback_t& callback) | ||
{ | ||
whenEventsToProcess = callback; | ||
|
||
// If events where previously signaled but the handler was not in place then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*were
08b0c40
to
1286c98
Compare
1286c98
to
90897b4
Compare
@pan- any update? more work or ? |
None I'm aware of. That may help if it gets reviewed by others 😅 . |
This interface expose the primitives needed to realize operations defined in the GAP layer. Data types, event and function definitions follow closely HCI commands and events defined in the Bluetooth specification.
Add an abstraction which manage the state of the GAP service exposed by the GATT server.
This filter prevent events to be signaled multiple times to the upper layer. It also signal events to a newly set event processor hook.
90897b4
to
63668cb
Compare
@marcbonnici Can you review/approve this please? |
/morph build |
Build : SUCCESSBuild number : 557 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 170 |
Description
This filter prevent events to be signaled multiple times to the upper layer. It
also signal events to a newly set event processor hook.
Previously filtering was made at the port level with that patch it is factored out at an higher level.
Status
READY
Migrations
BLE ports may be updated after this PR has been merged to benefit from the builtin filter. Note that existing code continue to work however it can be simplified.
Related PRs
#5296
Note
Diff can be found here: pan-/mbed@generic-access-service-abstraction-layer...pan-:ble-generic-event-filter