mirror of
https://github.com/esphome/esphome.git
synced 2025-10-12 06:43:48 +01:00
[esp32_ble] Partial revert of #10862 - Fix GATT client notifications
This commit is contained in:
@@ -332,12 +332,15 @@ def final_validation(config):
|
|||||||
|
|
||||||
# Check if BLE Server is needed
|
# Check if BLE Server is needed
|
||||||
has_ble_server = "esp32_ble_server" in full_config
|
has_ble_server = "esp32_ble_server" in full_config
|
||||||
add_idf_sdkconfig_option("CONFIG_BT_GATTS_ENABLE", has_ble_server)
|
|
||||||
|
|
||||||
# Check if BLE Client is needed (via esp32_ble_tracker or esp32_ble_client)
|
# Check if BLE Client is needed (via esp32_ble_tracker or esp32_ble_client)
|
||||||
has_ble_client = (
|
has_ble_client = (
|
||||||
"esp32_ble_tracker" in full_config or "esp32_ble_client" in full_config
|
"esp32_ble_tracker" in full_config or "esp32_ble_client" in full_config
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# ESP-IDF BLE stack requires GATT Server to be enabled when GATT Client is enabled
|
||||||
|
# This is an internal dependency in the Bluedroid stack (tested up to ESP-IDF 5.5.1)
|
||||||
|
add_idf_sdkconfig_option("CONFIG_BT_GATTS_ENABLE", has_ble_server or has_ble_client)
|
||||||
add_idf_sdkconfig_option("CONFIG_BT_GATTC_ENABLE", has_ble_client)
|
add_idf_sdkconfig_option("CONFIG_BT_GATTC_ENABLE", has_ble_client)
|
||||||
|
|
||||||
# Handle max_connections: check for deprecated location in esp32_ble_tracker
|
# Handle max_connections: check for deprecated location in esp32_ble_tracker
|
||||||
|
Reference in New Issue
Block a user