mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02:00
components/bt: Configure SSP in menuconfig
This commit is contained in:
@@ -181,16 +181,16 @@ choice SCAN_DUPLICATE_TYPE
|
|||||||
default SCAN_DUPLICATE_BY_DEVICE_ADDR
|
default SCAN_DUPLICATE_BY_DEVICE_ADDR
|
||||||
depends on BLE_SCAN_DUPLICATE
|
depends on BLE_SCAN_DUPLICATE
|
||||||
help
|
help
|
||||||
Scan duplicate have three ways. one is "Scan Duplicate By Device Address", This way is to use advertiser address
|
Scan duplicate have three ways. one is "Scan Duplicate By Device Address", This way is to use advertiser address
|
||||||
filtering. The adv packet of the same address is only allowed to be reported once. Another way is "Scan Duplicate
|
filtering. The adv packet of the same address is only allowed to be reported once. Another way is "Scan Duplicate
|
||||||
By Device Address And Advertising Data". This way is to use advertising data and device address filtering. All
|
By Device Address And Advertising Data". This way is to use advertising data and device address filtering. All
|
||||||
different adv packets with the same address are allowed to be reported. The last way is "Scan Duplicate By Advertising
|
different adv packets with the same address are allowed to be reported. The last way is "Scan Duplicate By Advertising
|
||||||
Data". This way is to use advertising data filtering. All same advertising data only allow to be reported once even though
|
Data". This way is to use advertising data filtering. All same advertising data only allow to be reported once even though
|
||||||
they are from different devices.
|
they are from different devices.
|
||||||
|
|
||||||
config SCAN_DUPLICATE_BY_DEVICE_ADDR
|
config SCAN_DUPLICATE_BY_DEVICE_ADDR
|
||||||
bool "Scan Duplicate By Device Address"
|
bool "Scan Duplicate By Device Address"
|
||||||
help
|
help
|
||||||
This way is to use advertiser address filtering. The adv packet of the same address is only allowed to be reported once
|
This way is to use advertiser address filtering. The adv packet of the same address is only allowed to be reported once
|
||||||
|
|
||||||
config SCAN_DUPLICATE_BY_ADV_DATA
|
config SCAN_DUPLICATE_BY_ADV_DATA
|
||||||
@@ -202,7 +202,7 @@ config SCAN_DUPLICATE_BY_ADV_DATA
|
|||||||
config SCAN_DUPLICATE_BY_ADV_DATA_AND_DEVICE_ADDR
|
config SCAN_DUPLICATE_BY_ADV_DATA_AND_DEVICE_ADDR
|
||||||
bool "Scan Duplicate By Device Address And Advertising Data"
|
bool "Scan Duplicate By Device Address And Advertising Data"
|
||||||
help
|
help
|
||||||
This way is to use advertising data and device address filtering. All different adv packets with the same address are
|
This way is to use advertising data and device address filtering. All different adv packets with the same address are
|
||||||
allowed to be reported.
|
allowed to be reported.
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
@@ -349,6 +349,13 @@ config HFP_AUDIO_DATA_PATH_HCI
|
|||||||
This enables the Serial Port Profile
|
This enables the Serial Port Profile
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
config BT_SSP_ENABLED
|
||||||
|
bool "Secure Simple Pairing"
|
||||||
|
depends on CLASSIC_BT_ENABLED
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
This enables the Secure Simple Pairing. If disable this option, Bluedroid will only support Legacy Pairing
|
||||||
|
|
||||||
config GATTS_ENABLE
|
config GATTS_ENABLE
|
||||||
bool "Include GATT server module(GATTS)"
|
bool "Include GATT server module(GATTS)"
|
||||||
depends on BLUEDROID_ENABLED && (BTDM_CONTROLLER_MODE_BTDM || BTDM_CONTROLLER_MODE_BLE_ONLY)
|
depends on BLUEDROID_ENABLED && (BTDM_CONTROLLER_MODE_BTDM || BTDM_CONTROLLER_MODE_BLE_ONLY)
|
||||||
|
@@ -52,7 +52,6 @@
|
|||||||
#define BTA_SDP_INCLUDED TRUE
|
#define BTA_SDP_INCLUDED TRUE
|
||||||
#define BTA_DM_PM_INCLUDED TRUE
|
#define BTA_DM_PM_INCLUDED TRUE
|
||||||
#define SDP_INCLUDED TRUE
|
#define SDP_INCLUDED TRUE
|
||||||
#define BT_SSP_INCLUDED TRUE
|
|
||||||
|
|
||||||
#if CONFIG_A2DP_ENABLE
|
#if CONFIG_A2DP_ENABLE
|
||||||
#define BTA_AR_INCLUDED TRUE
|
#define BTA_AR_INCLUDED TRUE
|
||||||
@@ -89,6 +88,10 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif /* CONFIG_HFP_HF_ENABLE */
|
#endif /* CONFIG_HFP_HF_ENABLE */
|
||||||
|
|
||||||
|
#if CONFIG_BT_SSP_ENABLED
|
||||||
|
#define BT_SSP_INCLUDED TRUE
|
||||||
|
#endif /* CONFIG_BT_SSP_ENABLED */
|
||||||
|
|
||||||
#endif /* #if CONFIG_CLASSIC_BT_ENABLED */
|
#endif /* #if CONFIG_CLASSIC_BT_ENABLED */
|
||||||
|
|
||||||
#ifndef CLASSIC_BT_INCLUDED
|
#ifndef CLASSIC_BT_INCLUDED
|
||||||
|
@@ -149,7 +149,11 @@ static void start_up(void)
|
|||||||
// it told us it supports. We need to do this first before we request the
|
// it told us it supports. We need to do this first before we request the
|
||||||
// next page, because the controller's response for page 1 may be
|
// next page, because the controller's response for page 1 may be
|
||||||
// dependent on what we configure from page 0
|
// dependent on what we configure from page 0
|
||||||
|
#if (BT_SSP_INCLUDED == TRUE)
|
||||||
simple_pairing_supported = HCI_SIMPLE_PAIRING_SUPPORTED(features_classic[0].as_array);
|
simple_pairing_supported = HCI_SIMPLE_PAIRING_SUPPORTED(features_classic[0].as_array);
|
||||||
|
#else
|
||||||
|
simple_pairing_supported = false;
|
||||||
|
#endif
|
||||||
if (simple_pairing_supported) {
|
if (simple_pairing_supported) {
|
||||||
response = AWAIT_COMMAND(packet_factory->make_write_simple_pairing_mode(HCI_SP_MODE_ENABLED));
|
response = AWAIT_COMMAND(packet_factory->make_write_simple_pairing_mode(HCI_SP_MODE_ENABLED));
|
||||||
packet_parser->parse_generic_command_complete(response);
|
packet_parser->parse_generic_command_complete(response);
|
||||||
|
@@ -114,10 +114,12 @@ void app_main()
|
|||||||
/* Bluetooth device name, connection mode and profile set up */
|
/* Bluetooth device name, connection mode and profile set up */
|
||||||
bt_app_work_dispatch(bt_av_hdl_stack_evt, BT_APP_EVT_STACK_UP, NULL, 0, NULL);
|
bt_app_work_dispatch(bt_av_hdl_stack_evt, BT_APP_EVT_STACK_UP, NULL, 0, NULL);
|
||||||
|
|
||||||
|
#if (CONFIG_BT_SSP_ENABLED == true)
|
||||||
/* Set default parameters for Secure Simple Pairing */
|
/* Set default parameters for Secure Simple Pairing */
|
||||||
esp_bt_sp_param_t param_type = ESP_BT_SP_IOCAP_MODE;
|
esp_bt_sp_param_t param_type = ESP_BT_SP_IOCAP_MODE;
|
||||||
esp_bt_io_cap_t iocap = ESP_BT_IO_CAP_IO;
|
esp_bt_io_cap_t iocap = ESP_BT_IO_CAP_IO;
|
||||||
esp_bt_gap_set_security_param(param_type, &iocap, sizeof(uint8_t));
|
esp_bt_gap_set_security_param(param_type, &iocap, sizeof(uint8_t));
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set default parameters for Legacy Pairing
|
* Set default parameters for Legacy Pairing
|
||||||
@@ -144,6 +146,8 @@ void bt_app_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (CONFIG_BT_SSP_ENABLED == true)
|
||||||
case ESP_BT_GAP_CFM_REQ_EVT:
|
case ESP_BT_GAP_CFM_REQ_EVT:
|
||||||
ESP_LOGI(BT_AV_TAG, "ESP_BT_GAP_CFM_REQ_EVT Please compare the numeric value: %d", param->cfm_req.num_val);
|
ESP_LOGI(BT_AV_TAG, "ESP_BT_GAP_CFM_REQ_EVT Please compare the numeric value: %d", param->cfm_req.num_val);
|
||||||
esp_bt_gap_ssp_confirm_reply(param->cfm_req.bda, true);
|
esp_bt_gap_ssp_confirm_reply(param->cfm_req.bda, true);
|
||||||
@@ -154,6 +158,8 @@ void bt_app_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param)
|
|||||||
case ESP_BT_GAP_KEY_REQ_EVT:
|
case ESP_BT_GAP_KEY_REQ_EVT:
|
||||||
ESP_LOGI(BT_AV_TAG, "ESP_BT_GAP_KEY_REQ_EVT Please enter passkey!");
|
ESP_LOGI(BT_AV_TAG, "ESP_BT_GAP_KEY_REQ_EVT Please enter passkey!");
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
ESP_LOGI(BT_AV_TAG, "event: %d", event);
|
ESP_LOGI(BT_AV_TAG, "event: %d", event);
|
||||||
break;
|
break;
|
||||||
|
@@ -136,10 +136,12 @@ void app_main()
|
|||||||
/* Bluetooth device name, connection mode and profile set up */
|
/* Bluetooth device name, connection mode and profile set up */
|
||||||
bt_app_work_dispatch(bt_av_hdl_stack_evt, BT_APP_EVT_STACK_UP, NULL, 0, NULL);
|
bt_app_work_dispatch(bt_av_hdl_stack_evt, BT_APP_EVT_STACK_UP, NULL, 0, NULL);
|
||||||
|
|
||||||
|
#if (CONFIG_BT_SSP_ENABLED == true)
|
||||||
/* Set default parameters for Secure Simple Pairing */
|
/* Set default parameters for Secure Simple Pairing */
|
||||||
esp_bt_sp_param_t param_type = ESP_BT_SP_IOCAP_MODE;
|
esp_bt_sp_param_t param_type = ESP_BT_SP_IOCAP_MODE;
|
||||||
esp_bt_io_cap_t iocap = ESP_BT_IO_CAP_IO;
|
esp_bt_io_cap_t iocap = ESP_BT_IO_CAP_IO;
|
||||||
esp_bt_gap_set_security_param(param_type, &iocap, sizeof(uint8_t));
|
esp_bt_gap_set_security_param(param_type, &iocap, sizeof(uint8_t));
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set default parameters for Legacy Pairing
|
* Set default parameters for Legacy Pairing
|
||||||
@@ -286,6 +288,8 @@ void bt_app_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (CONFIG_BT_SSP_ENABLED == true)
|
||||||
case ESP_BT_GAP_CFM_REQ_EVT:
|
case ESP_BT_GAP_CFM_REQ_EVT:
|
||||||
ESP_LOGI(BT_AV_TAG, "ESP_BT_GAP_CFM_REQ_EVT Please compare the numeric value: %d", param->cfm_req.num_val);
|
ESP_LOGI(BT_AV_TAG, "ESP_BT_GAP_CFM_REQ_EVT Please compare the numeric value: %d", param->cfm_req.num_val);
|
||||||
esp_bt_gap_ssp_confirm_reply(param->cfm_req.bda, true);
|
esp_bt_gap_ssp_confirm_reply(param->cfm_req.bda, true);
|
||||||
@@ -296,6 +300,8 @@ void bt_app_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param)
|
|||||||
case ESP_BT_GAP_KEY_REQ_EVT:
|
case ESP_BT_GAP_KEY_REQ_EVT:
|
||||||
ESP_LOGI(BT_AV_TAG, "ESP_BT_GAP_KEY_REQ_EVT Please enter passkey!");
|
ESP_LOGI(BT_AV_TAG, "ESP_BT_GAP_KEY_REQ_EVT Please enter passkey!");
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
ESP_LOGI(BT_AV_TAG, "event: %d", event);
|
ESP_LOGI(BT_AV_TAG, "event: %d", event);
|
||||||
break;
|
break;
|
||||||
|
@@ -132,6 +132,8 @@ void esp_bt_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (CONFIG_BT_SSP_ENABLED == true)
|
||||||
case ESP_BT_GAP_CFM_REQ_EVT:
|
case ESP_BT_GAP_CFM_REQ_EVT:
|
||||||
ESP_LOGI(SPP_TAG, "ESP_BT_GAP_CFM_REQ_EVT Please compare the numeric value: %d", param->cfm_req.num_val);
|
ESP_LOGI(SPP_TAG, "ESP_BT_GAP_CFM_REQ_EVT Please compare the numeric value: %d", param->cfm_req.num_val);
|
||||||
esp_bt_gap_ssp_confirm_reply(param->cfm_req.bda, true);
|
esp_bt_gap_ssp_confirm_reply(param->cfm_req.bda, true);
|
||||||
@@ -142,6 +144,8 @@ void esp_bt_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param)
|
|||||||
case ESP_BT_GAP_KEY_REQ_EVT:
|
case ESP_BT_GAP_KEY_REQ_EVT:
|
||||||
ESP_LOGI(SPP_TAG, "ESP_BT_GAP_KEY_REQ_EVT Please enter passkey!");
|
ESP_LOGI(SPP_TAG, "ESP_BT_GAP_KEY_REQ_EVT Please enter passkey!");
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
ESP_LOGI(SPP_TAG, "event: %d", event);
|
ESP_LOGI(SPP_TAG, "event: %d", event);
|
||||||
break;
|
break;
|
||||||
@@ -197,10 +201,12 @@ void app_main()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (CONFIG_BT_SSP_ENABLED == true)
|
||||||
/* Set default parameters for Secure Simple Pairing */
|
/* Set default parameters for Secure Simple Pairing */
|
||||||
esp_bt_sp_param_t param_type = ESP_BT_SP_IOCAP_MODE;
|
esp_bt_sp_param_t param_type = ESP_BT_SP_IOCAP_MODE;
|
||||||
esp_bt_io_cap_t iocap = ESP_BT_IO_CAP_IO;
|
esp_bt_io_cap_t iocap = ESP_BT_IO_CAP_IO;
|
||||||
esp_bt_gap_set_security_param(param_type, &iocap, sizeof(uint8_t));
|
esp_bt_gap_set_security_param(param_type, &iocap, sizeof(uint8_t));
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set default parameters for Legacy Pairing
|
* Set default parameters for Legacy Pairing
|
||||||
|
@@ -216,6 +216,8 @@ static void esp_bt_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *pa
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (CONFIG_BT_SSP_ENABLED == true)
|
||||||
case ESP_BT_GAP_CFM_REQ_EVT:
|
case ESP_BT_GAP_CFM_REQ_EVT:
|
||||||
ESP_LOGI(SPP_TAG, "ESP_BT_GAP_CFM_REQ_EVT Please compare the numeric value: %d", param->cfm_req.num_val);
|
ESP_LOGI(SPP_TAG, "ESP_BT_GAP_CFM_REQ_EVT Please compare the numeric value: %d", param->cfm_req.num_val);
|
||||||
esp_bt_gap_ssp_confirm_reply(param->cfm_req.bda, true);
|
esp_bt_gap_ssp_confirm_reply(param->cfm_req.bda, true);
|
||||||
@@ -226,6 +228,8 @@ static void esp_bt_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *pa
|
|||||||
case ESP_BT_GAP_KEY_REQ_EVT:
|
case ESP_BT_GAP_KEY_REQ_EVT:
|
||||||
ESP_LOGI(SPP_TAG, "ESP_BT_GAP_KEY_REQ_EVT Please enter passkey!");
|
ESP_LOGI(SPP_TAG, "ESP_BT_GAP_KEY_REQ_EVT Please enter passkey!");
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -282,10 +286,12 @@ void app_main()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (CONFIG_BT_SSP_ENABLED == true)
|
||||||
/* Set default parameters for Secure Simple Pairing */
|
/* Set default parameters for Secure Simple Pairing */
|
||||||
esp_bt_sp_param_t param_type = ESP_BT_SP_IOCAP_MODE;
|
esp_bt_sp_param_t param_type = ESP_BT_SP_IOCAP_MODE;
|
||||||
esp_bt_io_cap_t iocap = ESP_BT_IO_CAP_IO;
|
esp_bt_io_cap_t iocap = ESP_BT_IO_CAP_IO;
|
||||||
esp_bt_gap_set_security_param(param_type, &iocap, sizeof(uint8_t));
|
esp_bt_gap_set_security_param(param_type, &iocap, sizeof(uint8_t));
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set default parameters for Legacy Pairing
|
* Set default parameters for Legacy Pairing
|
||||||
|
@@ -137,6 +137,8 @@ void esp_bt_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (CONFIG_BT_SSP_ENABLED == true)
|
||||||
case ESP_BT_GAP_CFM_REQ_EVT:
|
case ESP_BT_GAP_CFM_REQ_EVT:
|
||||||
ESP_LOGI(SPP_TAG, "ESP_BT_GAP_CFM_REQ_EVT Please compare the numeric value: %d", param->cfm_req.num_val);
|
ESP_LOGI(SPP_TAG, "ESP_BT_GAP_CFM_REQ_EVT Please compare the numeric value: %d", param->cfm_req.num_val);
|
||||||
esp_bt_gap_ssp_confirm_reply(param->cfm_req.bda, true);
|
esp_bt_gap_ssp_confirm_reply(param->cfm_req.bda, true);
|
||||||
@@ -147,6 +149,8 @@ void esp_bt_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param)
|
|||||||
case ESP_BT_GAP_KEY_REQ_EVT:
|
case ESP_BT_GAP_KEY_REQ_EVT:
|
||||||
ESP_LOGI(SPP_TAG, "ESP_BT_GAP_KEY_REQ_EVT Please enter passkey!");
|
ESP_LOGI(SPP_TAG, "ESP_BT_GAP_KEY_REQ_EVT Please enter passkey!");
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
ESP_LOGI(SPP_TAG, "event: %d", event);
|
ESP_LOGI(SPP_TAG, "event: %d", event);
|
||||||
break;
|
break;
|
||||||
@@ -204,10 +208,12 @@ void app_main()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (CONFIG_BT_SSP_ENABLED == true)
|
||||||
/* Set default parameters for Secure Simple Pairing */
|
/* Set default parameters for Secure Simple Pairing */
|
||||||
esp_bt_sp_param_t param_type = ESP_BT_SP_IOCAP_MODE;
|
esp_bt_sp_param_t param_type = ESP_BT_SP_IOCAP_MODE;
|
||||||
esp_bt_io_cap_t iocap = ESP_BT_IO_CAP_IO;
|
esp_bt_io_cap_t iocap = ESP_BT_IO_CAP_IO;
|
||||||
esp_bt_gap_set_security_param(param_type, &iocap, sizeof(uint8_t));
|
esp_bt_gap_set_security_param(param_type, &iocap, sizeof(uint8_t));
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set default parameters for Legacy Pairing
|
* Set default parameters for Legacy Pairing
|
||||||
|
@@ -199,6 +199,8 @@ static void esp_bt_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *pa
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (CONFIG_BT_SSP_ENABLED == true)
|
||||||
case ESP_BT_GAP_CFM_REQ_EVT:
|
case ESP_BT_GAP_CFM_REQ_EVT:
|
||||||
ESP_LOGI(SPP_TAG, "ESP_BT_GAP_CFM_REQ_EVT Please compare the numeric value: %d", param->cfm_req.num_val);
|
ESP_LOGI(SPP_TAG, "ESP_BT_GAP_CFM_REQ_EVT Please compare the numeric value: %d", param->cfm_req.num_val);
|
||||||
esp_bt_gap_ssp_confirm_reply(param->cfm_req.bda, true);
|
esp_bt_gap_ssp_confirm_reply(param->cfm_req.bda, true);
|
||||||
@@ -209,6 +211,8 @@ static void esp_bt_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *pa
|
|||||||
case ESP_BT_GAP_KEY_REQ_EVT:
|
case ESP_BT_GAP_KEY_REQ_EVT:
|
||||||
ESP_LOGI(SPP_TAG, "ESP_BT_GAP_KEY_REQ_EVT Please enter passkey!");
|
ESP_LOGI(SPP_TAG, "ESP_BT_GAP_KEY_REQ_EVT Please enter passkey!");
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -271,10 +275,12 @@ void app_main()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (CONFIG_BT_SSP_ENABLED == true)
|
||||||
/* Set default parameters for Secure Simple Pairing */
|
/* Set default parameters for Secure Simple Pairing */
|
||||||
esp_bt_sp_param_t param_type = ESP_BT_SP_IOCAP_MODE;
|
esp_bt_sp_param_t param_type = ESP_BT_SP_IOCAP_MODE;
|
||||||
esp_bt_io_cap_t iocap = ESP_BT_IO_CAP_IO;
|
esp_bt_io_cap_t iocap = ESP_BT_IO_CAP_IO;
|
||||||
esp_bt_gap_set_security_param(param_type, &iocap, sizeof(uint8_t));
|
esp_bt_gap_set_security_param(param_type, &iocap, sizeof(uint8_t));
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set default parameters for Legacy Pairing
|
* Set default parameters for Legacy Pairing
|
||||||
|
Reference in New Issue
Block a user