@@ -856,6 +856,7 @@ void LegacyGap<Impl>::processAdvertisementReport(
856
856
#pragma pop
857
857
#endif
858
858
859
+ #if BLE_ROLE_BROADCASTER
859
860
template <class Impl >
860
861
uint16_t LegacyGap<Impl>::getMinAdvertisingInterval(void ) const
861
862
{
@@ -873,6 +874,9 @@ uint16_t LegacyGap<Impl>::getMaxAdvertisingInterval(void) const
873
874
{
874
875
return impl ()->getMaxAdvertisingInterval_ ();
875
876
}
877
+ #endif // BLE_ROLE_BROADCASTER
878
+
879
+ #if BLE_FEATURE_CONNECTABLE
876
880
877
881
template <class Impl >
878
882
ble_error_t LegacyGap<Impl>::getPreferredConnectionParams(ConnectionParams_t *params)
@@ -888,6 +892,10 @@ ble_error_t LegacyGap<Impl>::setPreferredConnectionParams(
888
892
return impl ()->setPreferredConnectionParams_ (params);
889
893
}
890
894
895
+ #endif // BLE_FEATURE_CONNECTABLE
896
+
897
+ #if BLE_FEATURE_GATT_SERVER
898
+
891
899
template <class Impl >
892
900
ble_error_t LegacyGap<Impl>::setDeviceName(const uint8_t *deviceName)
893
901
{
@@ -912,6 +920,9 @@ ble_error_t LegacyGap<Impl>::getAppearance(GapAdvertisingData::Appearance *appea
912
920
return impl ()->getAppearance_ (appearanceP);
913
921
}
914
922
923
+ #endif // BLE_FEATURE_GATT_SERVER
924
+
925
+ #if BLE_ROLE_BROADCASTER
915
926
template <class Impl >
916
927
ble_error_t LegacyGap<Impl>::setAdvertisingData(
917
928
const GapAdvertisingData &advData,
@@ -924,6 +935,7 @@ template<class Impl>
924
935
ble_error_t LegacyGap<Impl>::startAdvertising(const GapAdvertisingParams ¶ms) {
925
936
return impl ()->startAdvertising_ (params);
926
937
}
938
+ #endif // BLE_ROLE_BROADCASTER
927
939
928
940
template <class Impl >
929
941
ble_error_t LegacyGap<Impl>::reset(void )
0 commit comments