File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -2102,6 +2102,25 @@ class Gap {
2102
2102
return rc;
2103
2103
}
2104
2104
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 (const GapScanningParams& scanningParams) {
2116
+ return setScanParams (
2117
+ scanningParams.getInterval (),
2118
+ scanningParams.getWindow (),
2119
+ scanningParams.getTimeout (),
2120
+ scanningParams.getActiveScanning ()
2121
+ );
2122
+ }
2123
+
2105
2124
/* *
2106
2125
* Set the interval parameter used during scanning procedures.
2107
2126
*
You can’t perform that action at this time.
0 commit comments