mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #7262 from paul-szczepanek-arm/gap-params
BLE: Add setScanParams overload to the Gap APIpull/7303/head
commit
d18aa9072f
|
|
@ -2102,6 +2102,25 @@ public:
|
|||
return rc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the parameters used during a scan procedure.
|
||||
*
|
||||
* @param[in] scanningParams Parameter struct containing the interval, period,
|
||||
* timeout and active scanning toggle.
|
||||
*
|
||||
* @return BLE_ERROR_NONE if the scan parameters were correctly set.
|
||||
*
|
||||
* @note All restrictions from setScanParams(uint16_t, uint16_t, uint16_t, bool) apply.
|
||||
*/
|
||||
ble_error_t setScanParams(const GapScanningParams& scanningParams) {
|
||||
return setScanParams(
|
||||
scanningParams.getInterval(),
|
||||
scanningParams.getWindow(),
|
||||
scanningParams.getTimeout(),
|
||||
scanningParams.getActiveScanning()
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the interval parameter used during scanning procedures.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue