mirror of https://github.com/ARMmbed/mbed-os.git
BLE: rename AdvertisingParameters::*PolicyMode into AdvertisingParameters::*Filter.
parent
2eaec287fb
commit
52318e464d
|
@ -267,23 +267,23 @@ public:
|
|||
return _peerAddressType;
|
||||
};
|
||||
|
||||
/** Set the policy of whitelist use during advertising;
|
||||
/** Set the filter policy of whitelist use during advertising;
|
||||
*
|
||||
* @param Policy to use.
|
||||
*
|
||||
* @return A reference to this object.
|
||||
*/
|
||||
AdvertisingParameters &setPolicyMode(advertising_filter_policy_t mode)
|
||||
AdvertisingParameters &setFilter(advertising_filter_policy_t mode)
|
||||
{
|
||||
_policy = mode;
|
||||
return *this;
|
||||
}
|
||||
|
||||
/** Get the policy of whitelist use during advertising;
|
||||
/** Get the filter policy of whitelist use during advertising;
|
||||
*
|
||||
* @return Policy used.
|
||||
*/
|
||||
advertising_filter_policy_t getPolicyMode() const
|
||||
advertising_filter_policy_t getFilter() const
|
||||
{
|
||||
return _policy;
|
||||
}
|
||||
|
|
|
@ -1859,7 +1859,7 @@ ble_error_t GenericGap::setAdvertisingParameters(
|
|||
params.getPeerAddressType(),
|
||||
params.getPeerAddress(),
|
||||
channel_map,
|
||||
params.getPolicyMode()
|
||||
params.getFilter()
|
||||
);
|
||||
} else {
|
||||
return setExtendedAdvertisingParameters(handle, params);
|
||||
|
@ -1895,7 +1895,7 @@ ble_error_t GenericGap::setExtendedAdvertisingParameters(
|
|||
params.getOwnAddressType(),
|
||||
params.getPeerAddressType(),
|
||||
params.getPeerAddress(),
|
||||
params.getPolicyMode(),
|
||||
params.getFilter(),
|
||||
params.getTxPower(),
|
||||
params.getPrimaryPhy(),
|
||||
params.getSecondaryMaxSkip(),
|
||||
|
|
Loading…
Reference in New Issue