#define BT_LE_SCAN_INTERVAL_MAX 10240
#define BT_LE_SCAN_WINDOW_MIN 2.5
#define BT_LE_SCAN_WINDOW_MAX 10240
+#define BT_LE_SCAN_LOW_ENERGY_INTERVAL 1400 /* 1400ms */
+#define BT_LE_SCAN_LOW_ENERGY_WINDOW 140 /* 140ms */
#define BT_ADV_INTERVAL_SPLIT 0.625
le_scan_params.type = scan_type;
if (le_scan_params.interval == 0) {
/* Set default scan interval same with BT_ADAPTER_LE_SCAN_MODE_LOW_ENERGY */
- le_scan_params.interval = 5120;
- le_scan_params.window = 512;
+ le_scan_params.interval = BT_LE_SCAN_LOW_ENERGY_INTERVAL;
+ le_scan_params.window = BT_LE_SCAN_LOW_ENERGY_WINDOW;
}
}
if (is_le_set_scan_parameter == FALSE) {
/* Set default scan parameter same with BT_ADAPTER_LE_SCAN_MODE_LOW_ENERGY */
le_scan_params.type = BT_LE_ACTIVE_SCAN;
- le_scan_params.interval = 5120;
- le_scan_params.window = 512;
+ le_scan_params.interval = BT_LE_SCAN_LOW_ENERGY_INTERVAL;
+ le_scan_params.window = BT_LE_SCAN_LOW_ENERGY_WINDOW;
is_le_set_scan_parameter = TRUE;
}
_bt_set_scan_parameters(&le_scan_params);
if (is_le_set_scan_parameter == FALSE) {
/* Set default scan parameter same with BT_ADAPTER_LE_SCAN_MODE_LOW_ENERGY */
le_scan_params.type = BT_LE_ACTIVE_SCAN;
- le_scan_params.interval = 5120;
- le_scan_params.window = 512;
+ le_scan_params.interval = BT_LE_SCAN_LOW_ENERGY_INTERVAL;
+ le_scan_params.window = BT_LE_SCAN_LOW_ENERGY_WINDOW;
is_le_set_scan_parameter = TRUE;
}
_bt_set_scan_parameters(&le_scan_params);