From 588e68bccfae641e91b7c9d9f2023815ee70b484 Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Tue, 19 Jun 2018 14:36:18 +0100 Subject: [PATCH] add setScanParams overload --- features/FEATURE_BLE/ble/Gap.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/features/FEATURE_BLE/ble/Gap.h b/features/FEATURE_BLE/ble/Gap.h index aa7d2f6d74..b539b33520 100644 --- a/features/FEATURE_BLE/ble/Gap.h +++ b/features/FEATURE_BLE/ble/Gap.h @@ -2102,6 +2102,21 @@ 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(GapScanningParams scanningParams) { + _scanningParams = scanningParams; + return BLE_ERROR_NONE; + } + /** * Set the interval parameter used during scanning procedures. *