This example demonstrates using the GattClient API to control BLE client devices. The canonical source for this example lives at https://github.com/ARMmbed/mbed-os-example-ble/tree/master/BLE_LEDBlinker

Revision:
77:85a0d3cdd896
Parent:
75:1a8d19363522
Child:
81:816977af0b75
--- a/source/main.cpp	Mon Jan 14 11:00:50 2019 +0000
+++ b/source/main.cpp	Fri Jan 25 15:15:20 2019 +0000
@@ -136,7 +136,7 @@
     }
 
     void onConnectionComplete(const ble::ConnectionCompleteEvent& event) {
-        if (event.getOwnRole() == Gap::CENTRAL) {
+        if (event.getOwnRole() == ble::connection_role_t::CENTRAL) {
             _ble.gattClient().onServiceDiscoveryTermination(discovery_termination);
             _ble.gattClient().launchServiceDiscovery(
                 event.getConnectionHandle(),