Skip to content

BLE: deprecate UARTService and suppress compiler warnings #10635

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 2 commits into from
May 23, 2019

Conversation

LDong-Arm
Copy link
Contributor

Description

Deprecated BLE APIs called by deprecated services

We have already marked a few services (e.g. ones for Beacon) as deprecated, thus their uses of deprecated API should not lead to more compiler warnings.

UARTService

UARTService uses the old GAP advertising API which is now deprecated in favour of AdvertisingDataBuilder.
After discussing with @pan- @paul-szczepanek-arm, we consider deprecating UARTService.

Pull request type

[ ] Fix
[ ] Refactor
[ ] Target update
[X] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@pan- @paul-szczepanek-arm

UARTService is rarely used and has not been actively updated.
@LDong-Arm LDong-Arm force-pushed the deprecated_ble_services branch from 8f7188b to d10ec03 Compare May 22, 2019 13:07
@ciarmcom ciarmcom requested review from pan-, paul-szczepanek-arm and a team May 22, 2019 15:01
@ciarmcom
Copy link
Member

@LDong-Arm, thank you for your changes.
@pan- @paul-szczepanek-arm @ARMmbed/mbed-os-pan @ARMmbed/mbed-os-maintainers please review.

Copy link
Member

@pan- pan- left a comment

Choose a reason for hiding this comment

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

The changes looks good however could you prefix Deprecated.h with its folder: ble/pal/Deprecated.h ?

@LDong-Arm
Copy link
Contributor Author

The changes looks good however could you prefix Deprecated.h with its folder: ble/pal/Deprecated.h ?

Thanks, will do

Services that already have deprecation notices in place should
not trigger more warnings from the compiler.
@LDong-Arm LDong-Arm force-pushed the deprecated_ble_services branch from d10ec03 to f3c29df Compare May 23, 2019 08:17
Copy link
Contributor

@0xc0170 0xc0170 left a comment

Choose a reason for hiding this comment

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

Deprecating, no replacement ?

@pan-
Copy link
Member

pan- commented May 23, 2019

@0xc0170 This service hasn't been maintained for a long time (more than three years) and never really worked due to architectural defects (there's no flow control and we don't know when data flows out). I believe it is better to deprecate it now rather than leave the false impression it is useful and safe to use. It was a bad decision to land this code in the OS in the first place.

@0xc0170
Copy link
Contributor

0xc0170 commented May 23, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented May 23, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

@0xc0170 0xc0170 merged commit 3801d4a into ARMmbed:master May 23, 2019
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.

6 participants