diff --git a/connectivity/FEATURE_BLE/include/ble/gap/ChainableGapEventHandler.h b/connectivity/FEATURE_BLE/include/ble/gap/ChainableGapEventHandler.h index 820655aa878..b6ff907797b 100644 --- a/connectivity/FEATURE_BLE/include/ble/gap/ChainableGapEventHandler.h +++ b/connectivity/FEATURE_BLE/include/ble/gap/ChainableGapEventHandler.h @@ -41,6 +41,10 @@ class ChainableGapEventHandler : public ble::Gap::EventHandler, execute_on_all(&ble::Gap::EventHandler::onScanRequestReceived, event); } + void onAdvertisingStart(const ble::AdvertisingStartEvent &event) override { + execute_on_all(&ble::Gap::EventHandler::onAdvertisingStart, event); + } + void onAdvertisingEnd(const ble::AdvertisingEndEvent &event) override { execute_on_all(&ble::Gap::EventHandler::onAdvertisingEnd, event); } @@ -112,6 +116,10 @@ class ChainableGapEventHandler : public ble::Gap::EventHandler, connectionHandle, txSize, rxSize); } + void onPrivacyEnabled() override { + execute_on_all(&ble::Gap::EventHandler::onPrivacyEnabled); + } + }; #endif /* MBED_CHAINABLEGAPEVENTHANDLER_H_ */