cordio observer role pass

pull/9790/head
paul-szczepanek-arm 2019-02-22 16:18:36 +00:00 committed by Vincent Coubard
parent eb16fb6053
commit 45eca7c373
4 changed files with 8 additions and 6 deletions

View File

@ -408,7 +408,7 @@ public:
CENTRAL = 0x2, CENTRAL = 0x2,
}; };
#if BLE_ROLE_BROADCASTER #if BLE_ROLE_OBSERVER
/** /**
* Representation of a scanned advertising packet. * Representation of a scanned advertising packet.
* *
@ -483,7 +483,7 @@ public:
*/ */
typedef FunctionPointerWithContext<const AdvertisementCallbackParams_t *> typedef FunctionPointerWithContext<const AdvertisementCallbackParams_t *>
AdvertisementReportCallback_t; AdvertisementReportCallback_t;
#endif // BLE_ROLE_BROADCASTER #endif // BLE_ROLE_OBSERVER
#if BLE_FEATURE_CONNECTABLE #if BLE_FEATURE_CONNECTABLE
/** /**

View File

@ -3,12 +3,12 @@
"config": { "config": {
"ble-feature-observer": { "ble-feature-observer": {
"help": "Include observer BLE role support, allows listening for and processing advertising packets.", "help": "Include observer BLE role support, allows listening for and processing advertising packets.",
"value": false, "value": true,
"macro_name": "BLE_ROLE_OBSERVER" "macro_name": "BLE_ROLE_OBSERVER"
}, },
"ble-role-broadcaster": { "ble-role-broadcaster": {
"help": "Include broadcaster BLE role support, allows sending advertising packets.", "help": "Include broadcaster BLE role support, allows sending advertising packets.",
"value": true, "value": false,
"macro_name": "BLE_ROLE_BROADCASTER" "macro_name": "BLE_ROLE_BROADCASTER"
}, },
"ble-role-peripheral": { "ble-role-peripheral": {

View File

@ -970,8 +970,10 @@ LegacyGap<Impl>::LegacyGap() :
, disconnectionCallChain() , disconnectionCallChain()
#endif // BLE_FEATURE_CONNECTABLE #endif // BLE_FEATURE_CONNECTABLE
{ {
#if BLE_ROLE_BROADCASTER
_advPayload.clear(); _advPayload.clear();
_scanResponse.clear(); _scanResponse.clear();
#endif // BLE_ROLE_BROADCASTER
} }
template<class Impl> template<class Impl>

View File

@ -2214,7 +2214,7 @@ void GenericGap<PalGapImpl, PalSecurityManager, ConnectionEventMonitorEventHandl
template <template<class> class PalGapImpl, class PalSecurityManager, class ConnectionEventMonitorEventHandler> template <template<class> class PalGapImpl, class PalSecurityManager, class ConnectionEventMonitorEventHandler>
const uint8_t GenericGap<PalGapImpl, PalSecurityManager, ConnectionEventMonitorEventHandler>::MAX_ADVERTISING_SETS; const uint8_t GenericGap<PalGapImpl, PalSecurityManager, ConnectionEventMonitorEventHandler>::MAX_ADVERTISING_SETS;
#if BLE_ROLE_OBSERVER #if BLE_ROLE_BROADCASTER
template <template<class> class PalGapImpl, class PalSecurityManager, class ConnectionEventMonitorEventHandler> template <template<class> class PalGapImpl, class PalSecurityManager, class ConnectionEventMonitorEventHandler>
uint8_t GenericGap<PalGapImpl, PalSecurityManager, ConnectionEventMonitorEventHandler>::getMaxAdvertisingSetNumber_() uint8_t GenericGap<PalGapImpl, PalSecurityManager, ConnectionEventMonitorEventHandler>::getMaxAdvertisingSetNumber_()
{ {
@ -2894,7 +2894,7 @@ bool GenericGap<PalGapImpl, PalSecurityManager, ConnectionEventMonitorEventHandl
return _active_periodic_sets.get(handle); return _active_periodic_sets.get(handle);
} }
#endif // BLE_FEATURE_PERIODIC_ADVERTISING #endif // BLE_FEATURE_PERIODIC_ADVERTISING
#endif // BLE_ROLE_OBSERVER #endif // BLE_ROLE_BROADCASTER
#if BLE_FEATURE_CONNECTABLE #if BLE_FEATURE_CONNECTABLE
template <template<class> class PalGapImpl, class PalSecurityManager, class ConnectionEventMonitorEventHandler> template <template<class> class PalGapImpl, class PalSecurityManager, class ConnectionEventMonitorEventHandler>