Add the custom scan mode setting API 16/267116/1 accepted/tizen/unified/20211130.125443 submit/tizen/20211129.075122
authordh79pyun <dh79.pyun@samsung.com>
Fri, 26 Nov 2021 00:29:56 +0000 (09:29 +0900)
committerdh79pyun <dh79.pyun@samsung.com>
Fri, 26 Nov 2021 00:29:56 +0000 (09:29 +0900)
Change-Id: I9fa8453d31c07fa4599246eb0c7ef2d4c6d44029
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
include/bluetooth_internal.h

index 3532889..cd3e823 100644 (file)
@@ -900,6 +900,27 @@ int bt_adapter_le_set_scan_type(bt_adapter_le_scan_type_e scan_type);
 
 /**
  * @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE
+ * @brief Sets Bluetooth LE customized scan mode
+ * @since_tizen 7.0
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/bluetooth.admin
+ * @param[in]  scan_interval  The scan interval
+ * @param[in]  scan_window  The scan window
+ *
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_NOT_INITIALIZED  Not initialized
+ * @retval #BT_ERROR_NOT_ENABLED Adapter is not enabled
+ * @retval #BT_ERROR_INVALID_PARAMETER Parameter is invalid
+ * @retval #BT_ERROR_PERMISSION_DENIED  Permission denied
+ * @retval #BT_ERROR_NOT_SUPPORTED  Not supported
+ * @pre The state of local Bluetooth must be #BT_ADAPTER_ENABLED.
+ * @pre The Bluetooth service must be initialized with bt_initialize().
+ */
+int bt_adapter_le_set_customized_scan_mode(float scan_interval, float scan_window);
+
+/**
+ * @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE
  * @brief Sets the RSSI for the advertisements filter.
  * @details Advertiser will be reported only if the signal is higher than specified rssi.
  * @since_tizen 6.0