ARMmbed / mbed-os-example-ble

BLE demos using mbed OS and mbed cli
Apache License 2.0
134 stars 118 forks source link

Use new types for BLE address and Gap #290

Closed LDong-Arm closed 4 years ago

LDong-Arm commented 4 years ago

In https://github.com/ARMmbed/mbed-os/pull/12730 we have removed legacy address-related types (BLEProtocol:: namespace) in favour of new once in ble:: namespace. This PR updates examples so they will continue to work the latest Mbed OS.

Changes:

Additionally, in #289 we fixed types for Gap, but it got reverted because it contains a typo fix which hasn't landed in mbed-os repo yet. This PR also brings that back.

Note: This change is in conjunction with https://github.com/ARMmbed/mbed-os/pull/12730 - they have to be merged roughly at the same time.

LDong-Arm commented 4 years ago

@ARMmbed/mbed-os-pan @pan- @evedon This is another (and should be the final) round of BLE examples update. It needs to get in at the same time as ARMmbed/mbed-os#12730 in mbed-os due to an API change.