add setScanParams overload

pull/7262/head
paul-szczepanek-arm 2018-06-19 14:36:18 +01:00
parent eb3d3fdb54
commit 588e68bccf
1 changed files with 15 additions and 0 deletions

View File

@ -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.
*