Skip to content

Commit 588e68b

Browse files
add setScanParams overload
1 parent eb3d3fd commit 588e68b

File tree

1 file changed

+15
-0
lines changed
  • features/FEATURE_BLE/ble

1 file changed

+15
-0
lines changed

features/FEATURE_BLE/ble/Gap.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2102,6 +2102,21 @@ class Gap {
21022102
return rc;
21032103
}
21042104

2105+
/**
2106+
* Set the parameters used during a scan procedure.
2107+
*
2108+
* @param[in] scanningParams Parameter struct containing the interval, period,
2109+
* timeout and active scanning toggle.
2110+
*
2111+
* @return BLE_ERROR_NONE if the scan parameters were correctly set.
2112+
*
2113+
* @note All restrictions from setScanParams(uint16_t, uint16_t, uint16_t, bool) apply.
2114+
*/
2115+
ble_error_t setScanParams(GapScanningParams scanningParams) {
2116+
_scanningParams = scanningParams;
2117+
return BLE_ERROR_NONE;
2118+
}
2119+
21052120
/**
21062121
* Set the interval parameter used during scanning procedures.
21072122
*

0 commit comments

Comments
 (0)