-
Notifications
You must be signed in to change notification settings - Fork 3k
Ble conf #9790
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
Ble conf #9790
Conversation
Please add needs work. |
@paul-szczepanek-arm, thank you for your changes. |
@0xc0170 We need the 5.12 tag please. |
2506f3c
to
3134139
Compare
The event handler has been extracted out of the monitor declaration.
The event handler has been taken out of Gap declaration and the instantiation must provide an implementation and the type that plays the event handler role.
The event handler has been taken out of GattClient declaration and an instantiation requires the actual implementation and the type that handle events.
The event handler has been extracted out of SecurityManager declaration and instantion of the interface requires the implementation and event handler type.
The event handler has been extracted out of SigningEventMonitor declaration and SigningEventMonitor instantion requires the implementation and event handler type.
The interface definition now lives in ::ble::interface::LegacyGap. Implementation must export the implementation type as ble::impl::LegacyGap.
The interface definition now lives in ::ble::interface::Gap. The implementation must export the implementation types as ::ble::impl::Gap.
Interface definition now lives in ble::interface::GattClient. An implementation must export the implementation type in ::ble::impl::GattClient.
The interface is defined in ::ble::interface::GattServer and an implementation must export the implementation type ::ble::impl::GattServer.
The interface now lives in ::ble::interface::SecurityManager. The implementation type is expectected to exported as ble ::ble::impl::SecurityManager by the implementation.
@@ -14,11 +14,6 @@ | |||
* limitations under the License. | |||
*/ | |||
|
|||
#include "BLERoles.h" | |||
|
|||
#if BLE_FEATURE_GATT_SERVER |
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.
why? does not compile now
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.
addressed
@@ -14,11 +14,6 @@ | |||
* limitations under the License. | |||
*/ | |||
|
|||
#include "BLERoles.h" | |||
|
|||
#if BLE_FEATURE_GATT_SERVER |
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.
does in fact need gattserver
@@ -14,11 +14,6 @@ | |||
* limitations under the License. | |||
*/ | |||
|
|||
#include "BLERoles.h" | |||
|
|||
#if BLE_FEATURE_GATT_SERVER |
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.
reinstate pls
@paul-szczepanek-arm I've addressed your comments and benchmarked our examples:
Note: Numbers provided are just for the BLE API |
@@ -25,6 +25,8 @@ | |||
|
|||
#endif | |||
|
|||
#if BLE_FEATURE_GATT_SERVER | |||
|
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.
still fails
#if BLE_ROLE_BROADCASTER |
@armmbed/mbed-os-maintainers this one should be ready for CI |
@donatieng Pending a successful merge dryrun test, #9727 will be getting merged. Wanted to wait before that was in. |
ETA ~20 mins |
Sounds good, thanks @cmonr |
Well then. Really glad I did that. A couple things appear to have broken. Checking it out. Will update when able. |
@pan- Thanks for the diff. |
CI started |
Test run: SUCCESSSummary: 13 of 13 test jobs passed |
@@ -0,0 +1,866 @@ | |||
/* mbed Microcontroller Library |
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.
Ooohhh. This was deleted, renamed, then added.
I was wondering why it looked like the GH interface was being weird.
git mv <file>{cpp,tpp}
appears to not have been done.
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.
This is a really nice refactor!
Description
Allow users to configure the BLE feature to disable functionality not needed by the device to save memory.
Pull request type
Reviewers
@pan-
Release Notes
No changes made to existing programs. By default all options are enabled which is the current state.