Skip to content

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

Merged
merged 4 commits into from
Nov 22, 2017
Merged

Conversation

pan-
Copy link
Member

@pan- pan- commented Oct 11, 2017

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

@pan-
Copy link
Member Author

pan- commented Oct 11, 2017

@marcbonnici @nvlsianpu @apalmieriGH Could you review this PR ?

@mbed-ci
Copy link

mbed-ci commented Oct 11, 2017

Build : SUCCESS

Build number : 125
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5299/

Triggering tests

/test mbed-os

@pan- pan- mentioned this pull request Oct 11, 2017
@mbed-ci
Copy link

mbed-ci commented Oct 11, 2017

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*were

@pan- pan- force-pushed the ble-generic-event-filter branch from 08b0c40 to 1286c98 Compare October 12, 2017 09:49
@pan- pan- force-pushed the ble-generic-event-filter branch from 1286c98 to 90897b4 Compare October 15, 2017 15:45
@0xc0170
Copy link
Contributor

0xc0170 commented Oct 19, 2017

@pan- any update? more work or ?

@pan-
Copy link
Member Author

pan- commented Oct 19, 2017

None I'm aware of. That may help if it gets reviewed by others 😅 .

pan- added 3 commits October 31, 2017 17:32
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.
@0xc0170
Copy link
Contributor

0xc0170 commented Nov 14, 2017

@marcbonnici Can you review/approve this please?

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 20, 2017

/morph build

@mbed-ci
Copy link

mbed-ci commented Nov 20, 2017

Build : SUCCESS

Build number : 557
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5299/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build

@mbed-ci
Copy link

mbed-ci commented Nov 20, 2017

@mbed-ci
Copy link

mbed-ci commented Nov 20, 2017

@theotherjimmy theotherjimmy merged commit 23408e4 into ARMmbed:master Nov 22, 2017
@pan- pan- deleted the ble-generic-event-filter branch July 3, 2018 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants