mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
refactor(examples): disable unused BT options in bluedroid BLE examples
Add sdkconfig.defaults to turn off unused Bluedroid host features per
example role (GATT client/server, SMP, legacy adv, etc.).
(cherry picked from commit b4b640f233)
Co-authored-by: zhiweijian <zhiweijian@espressif.com>
This commit is contained in:
@@ -3,3 +3,7 @@
|
||||
#
|
||||
CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y
|
||||
CONFIG_BT_ENABLED=y
|
||||
|
||||
# Disable unused Bluedroid host features (GATT security client, extended scan only)
|
||||
# CONFIG_BT_GATTS_ENABLE is not set
|
||||
# CONFIG_BT_BLE_50_DTM_TEST_EN is not set
|
||||
|
||||
@@ -2,3 +2,7 @@
|
||||
# Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration
|
||||
#
|
||||
CONFIG_BT_ENABLED=y
|
||||
|
||||
# Disable unused Bluedroid host features (GATT security server, extended adv only)
|
||||
# CONFIG_BT_GATTC_ENABLE is not set
|
||||
# CONFIG_BT_BLE_50_DTM_TEST_EN is not set
|
||||
|
||||
+5
@@ -9,3 +9,8 @@ CONFIG_BT_BLE_42_FEATURES_SUPPORTED=n
|
||||
# CONFIG_BT_LE_50_FEATURE_SUPPORT=n
|
||||
CONFIG_GATTS_NOTIFY_THROUGHPUT=y
|
||||
CONFIG_GATTC_WRITE_THROUGHPUT=n
|
||||
|
||||
# Disable unused Bluedroid host features (GATT client only)
|
||||
# CONFIG_BT_GATTS_ENABLE is not set
|
||||
# CONFIG_BT_BLE_SMP_ENABLE is not set
|
||||
# CONFIG_BT_BLE_50_DTM_TEST_EN is not set
|
||||
|
||||
+5
@@ -10,3 +10,8 @@ CONFIG_BT_BLE_50_FEATURES_SUPPORTED=y
|
||||
CONFIG_BT_BLE_42_FEATURES_SUPPORTED=n
|
||||
# CONFIG_BT_LE_50_FEATURE_SUPPORT is not used on ESP32, ESP32-C3 and ESP32-S3.
|
||||
# CONFIG_BT_LE_50_FEATURE_SUPPORT=n
|
||||
|
||||
# Disable unused Bluedroid host features (GATT server only)
|
||||
# CONFIG_BT_GATTC_ENABLE is not set
|
||||
# CONFIG_BT_BLE_SMP_ENABLE is not set
|
||||
# CONFIG_BT_BLE_50_DTM_TEST_EN is not set
|
||||
|
||||
@@ -14,3 +14,4 @@ CONFIG_BT_BLE_SMP_ENABLE=n
|
||||
CONFIG_BT_BLE_50_EXTEND_ADV_EN=n
|
||||
|
||||
CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y
|
||||
CONFIG_BT_BLE_50_DTM_TEST_EN=n
|
||||
|
||||
@@ -2,5 +2,20 @@
|
||||
# Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration
|
||||
#
|
||||
CONFIG_BT_ENABLED=y
|
||||
CONFIG_BT_BLUEDROID_ENABLED=y
|
||||
CONFIG_BT_BLE_ENABLED=y
|
||||
CONFIG_BT_BLE_50_FEATURES_SUPPORTED=y
|
||||
CONFIG_BT_BLE_42_FEATURES_SUPPORTED=n
|
||||
|
||||
# Multiple extended advertisers only
|
||||
CONFIG_BT_LE_MAX_EXT_ADV_INSTANCES=4
|
||||
CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y
|
||||
CONFIG_BT_BLE_50_EXTEND_ADV_EN=y
|
||||
CONFIG_BT_BLE_50_EXTEND_SCAN_EN=n
|
||||
CONFIG_BT_BLE_50_EXTEND_SYNC_EN=n
|
||||
CONFIG_BT_BLE_50_PERIODIC_ADV_EN=n
|
||||
|
||||
# CONFIG_BT_GATTS_ENABLE is not set
|
||||
# CONFIG_BT_GATTC_ENABLE is not set
|
||||
# CONFIG_BT_BLE_SMP_ENABLE is not set
|
||||
# CONFIG_BT_BLE_50_DTM_TEST_EN is not set
|
||||
|
||||
@@ -3,3 +3,18 @@
|
||||
#
|
||||
CONFIG_BT_ENABLED=y
|
||||
CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y
|
||||
CONFIG_BT_BLUEDROID_ENABLED=y
|
||||
CONFIG_BT_BLE_ENABLED=y
|
||||
CONFIG_BT_BLE_50_FEATURES_SUPPORTED=y
|
||||
CONFIG_BT_BLE_42_FEATURES_SUPPORTED=n
|
||||
|
||||
# Periodic extended advertiser only (no scan / sync / GATT)
|
||||
CONFIG_BT_BLE_50_EXTEND_ADV_EN=y
|
||||
CONFIG_BT_BLE_50_PERIODIC_ADV_EN=y
|
||||
CONFIG_BT_BLE_50_EXTEND_SCAN_EN=n
|
||||
CONFIG_BT_BLE_50_EXTEND_SYNC_EN=n
|
||||
|
||||
# CONFIG_BT_GATTS_ENABLE is not set
|
||||
# CONFIG_BT_GATTC_ENABLE is not set
|
||||
# CONFIG_BT_BLE_SMP_ENABLE is not set
|
||||
# CONFIG_BT_BLE_50_DTM_TEST_EN is not set
|
||||
|
||||
@@ -3,3 +3,18 @@
|
||||
#
|
||||
CONFIG_BT_ENABLED=y
|
||||
CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y
|
||||
CONFIG_BT_BLUEDROID_ENABLED=y
|
||||
CONFIG_BT_BLE_ENABLED=y
|
||||
CONFIG_BT_BLE_50_FEATURES_SUPPORTED=y
|
||||
CONFIG_BT_BLE_42_FEATURES_SUPPORTED=n
|
||||
|
||||
# Periodic advertising sync role: extended scan + sync only (no extended adv / no periodic adv in host)
|
||||
CONFIG_BT_BLE_50_EXTEND_SCAN_EN=y
|
||||
CONFIG_BT_BLE_50_EXTEND_SYNC_EN=y
|
||||
# CONFIG_BT_BLE_50_EXTEND_ADV_EN is not set
|
||||
# CONFIG_BT_BLE_50_PERIODIC_ADV_EN is not set
|
||||
|
||||
# CONFIG_BT_GATTS_ENABLE is not set
|
||||
# CONFIG_BT_GATTC_ENABLE is not set
|
||||
# CONFIG_BT_BLE_SMP_ENABLE is not set
|
||||
# CONFIG_BT_BLE_50_DTM_TEST_EN is not set
|
||||
|
||||
Reference in New Issue
Block a user