Closed LDong-Arm closed 4 years ago
Hi @ARMmbed/mbed-os-pan, @evedon, this PR makes sure examples continue to work after https://github.com/ARMmbed/mbed-os/pull/12730 is merged. The example updates are trivial and there's no dependency on the mbed-os PR though.
Changes look good but could you add more details in the PR description on the migration actions?
Thanks for the review, I've updated the description.
@jamesbeyond It looks like the CI result is not reported back to GitHub? @pan- Can we get this in?
Thanks
@jamesbeyond It looks like the CI result is not reported back to GitHub? @pan- Can we get this in?
Thanks
@LDong-Arm Can you rebase? then the new CI will kicks in
now CI works 😉
@jamesbeyond Thanks!
@pan- @evedon In addition to this, I'll make another example update PR to match device address related API changes. That will have a two-way dependency with the mbed-os Gap PR and they'll need to get in at the same time.
This is now causing PRs failing (master Mbed OS)
./source/main.cpp:411:14: error: no type named 'central_privacy_configuration_t' in namespace 'ble'; did you mean 'central_privay_configuration_t'?
The mbed-os master branch has long had a typo central_privay_configuration_t
(should be privacy). I corrected the spelling both here which caused mbed-os CI to fail...
This PR replaces usages of deprecated types in
Gap::
that are not warned by the compiler but will not be available anymore once https://github.com/ARMmbed/mbed-os/pull/12730 is merged. (Note: This does not depend on that PR.)Types replaced:
Gap::Phy_t
->ble::phy_t
Gap::Handle_t
->ble::connection_handle_t
GapAdvertisingData::LE_GENERAL_DISCOVERABLE
->ble::adv_data_flags_t(value).getGeneralDiscoverable()
Gap::CentralPrivacyConfiguration_t
->ble::central_privacy_configuration_t
The legacy types exist in the legacy Gap class only which will be removed from mbed-os. The current Gap APIs only use the new types.