-
Notifications
You must be signed in to change notification settings - Fork 3k
Replace deprecated BLE API calls #12235
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
@hugueskamba, thank you for your changes. |
Even simple PRs should provide some what has been deprecated in BLE and what we should use - would it be useful to have in the commit msg ? |
3da0107
to
fae6ab1
Compare
Done. |
CI started |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
Restarted entire pipeline to get test reports in logs |
We are investigating failures in CI, will restart once fixed |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
The failure is there, looks like it is related to the changes. cc @ARMmbed/mbed-os-pan |
fae6ab1
to
260ef85
Compare
@pan- |
The init sequence needs to be amended if the set privacy call does not cause an HCI command to be sent. The sequence relies on each command causing a new HCI reply being generated. |
As the `LegacyGap` class has been deprecated, in favor of the `Gap` class, all references of its references in the code base has been replaced.
260ef85
to
dbf4cdb
Compare
@pan- @paul-szczepanek-arm @LDong-Arm |
It appears it also is relevant when EDIT: Doing a configuration is actually what allows the initialization to complete (not It was agreed that the currently deprecated API should be made Internal (usable in Mbed OS but not public) instead. |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
cloud test restarted |
@pan- @paul-szczepanek-arm Updated with tests passing, is this good to go in? |
NOTE the ci last ran several days ago and thus this will need to be run again before it can be merged, to ensure no conflicts etc due to other merges in the interim! |
@adbridge Could you restart CI please? |
CI restarted |
@evedon this still needs approval from the Pan team.. |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
@evedon From Vincent: I’m not seeing this getting approved; we discussed with Hugues last Thursday and there is no clear replacement for the deprecated function Gap::setAddress . |
More work is required. @pan- will take over |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
The PR https://github.com/ARMmbed/mbed-os/pull/12321/files replaces the deprecated PR with a new API. |
Summary of changes
As the
LegacyGap
class has been deprecated, in favor of theGap
class, all references of its references in the code base has been
replaced.
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers
@pan- @paul-szczepanek-arm