-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Conversation
UARTService is rarely used and has not been actively updated.
8f7188b
to
d10ec03
Compare
@LDong-Arm, thank you for your changes. |
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.
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.
d10ec03
to
f3c29df
Compare
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.
Deprecating, no replacement ?
@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. |
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
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
Reviewers
@pan- @paul-szczepanek-arm