mirror of https://github.com/ARMmbed/mbed-os.git
add setScanParams overload
parent
eb3d3fdb54
commit
588e68bccf
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue