- Switch UART0 for protocol I/O (USB bridge), disable ESP-IDF console - Wire all 21 command handlers into dispatch table (was only 4) - Add configure command handler (name, io_cap, device_class) - Add bt_classic_is_enabled()/bt_ble_is_enabled() for live status - Fix cJSON_False misuse in get_status (type constant, not boolean) - Fix esp_bt_gap_set_cod() to use esp_bt_cod_t bitfield struct - Fix auth_cmpl.auth_mode → lk_type for ESP-IDF v5.3 - Replace deprecated esp_bt_dev_set_device_name with stack-specific API - Remove unused bytes_to_hex, obsolete kconfig symbols - Use large partition table (1.5MB) for dual-mode BT stack Verified on ESP32-D0WD-V3 rev 3.1, /dev/ttyUSB4, all commands tested.
32 lines
783 B
Plaintext
32 lines
783 B
Plaintext
# Bluetooth (dual-mode: Classic + BLE via Bluedroid)
|
|
CONFIG_BT_ENABLED=y
|
|
CONFIG_BT_BLUEDROID_ENABLED=y
|
|
CONFIG_BT_CLASSIC_ENABLED=y
|
|
CONFIG_BT_BLE_ENABLED=y
|
|
CONFIG_BT_A2DP_ENABLE=n
|
|
CONFIG_BT_SPP_ENABLED=y
|
|
|
|
# GAP & GATTS
|
|
CONFIG_BT_GATTS_ENABLE=y
|
|
CONFIG_BT_GATTC_ENABLE=n
|
|
|
|
# Bluetooth controller
|
|
CONFIG_BTDM_CTRL_MODE_BTDM=y
|
|
|
|
# UART — disable ESP-IDF console so our protocol handler owns UART0
|
|
CONFIG_ESP_CONSOLE_NONE=y
|
|
|
|
# Stack sizes (Bluetooth needs generous stacks)
|
|
CONFIG_BT_BTU_TASK_STACK_SIZE=8192
|
|
CONFIG_BTDM_CTRL_HCI_MODE_VHCI=y
|
|
|
|
# Logging — keep it reasonable
|
|
CONFIG_LOG_DEFAULT_LEVEL_INFO=y
|
|
CONFIG_LOG_MAXIMUM_LEVEL_DEBUG=y
|
|
|
|
# Partition table — large (1.5MB app) needed for dual-mode BT stack
|
|
CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y
|
|
|
|
# FreeRTOS
|
|
CONFIG_FREERTOS_HZ=1000
|