diff --git a/features/FEATURE_BLE/source/LegacyGap.tpp b/features/FEATURE_BLE/source/LegacyGap.tpp index 9062123da5..4cfa213722 100644 --- a/features/FEATURE_BLE/source/LegacyGap.tpp +++ b/features/FEATURE_BLE/source/LegacyGap.tpp @@ -856,6 +856,7 @@ void LegacyGap::processAdvertisementReport( #pragma pop #endif +#if BLE_ROLE_BROADCASTER template uint16_t LegacyGap::getMinAdvertisingInterval(void) const { @@ -873,6 +874,9 @@ uint16_t LegacyGap::getMaxAdvertisingInterval(void) const { return impl()->getMaxAdvertisingInterval_(); } +#endif // BLE_ROLE_BROADCASTER + +#if BLE_FEATURE_CONNECTABLE template ble_error_t LegacyGap::getPreferredConnectionParams(ConnectionParams_t *params) @@ -888,6 +892,10 @@ ble_error_t LegacyGap::setPreferredConnectionParams( return impl()->setPreferredConnectionParams_(params); } +#endif // BLE_FEATURE_CONNECTABLE + +#if BLE_FEATURE_GATT_SERVER + template ble_error_t LegacyGap::setDeviceName(const uint8_t *deviceName) { @@ -912,6 +920,9 @@ ble_error_t LegacyGap::getAppearance(GapAdvertisingData::Appearance *appea return impl()->getAppearance_(appearanceP); } +#endif // BLE_FEATURE_GATT_SERVER + +#if BLE_ROLE_BROADCASTER template ble_error_t LegacyGap::setAdvertisingData( const GapAdvertisingData &advData, @@ -924,6 +935,7 @@ template ble_error_t LegacyGap::startAdvertising(const GapAdvertisingParams ¶ms) { return impl()->startAdvertising_(params); } +#endif // BLE_ROLE_BROADCASTER template ble_error_t LegacyGap::reset(void)