Bluetooth mode configuration
Posted: Tue Aug 08, 2023 2:12 pm
Hello ESP32 users,
The functionbtdm_controller_get_mode below is retourning a wrong mode number . I am expecting 4 (ESP_BT_MODE_BTDM), but 1 (ESP_BT_MODE_BLE) is returned. In menuconfig->Component->Bluetooth->Bluetooth->Host Bluedroid - Dual-Mode is activated, so I am expecting btdm_controller_get_mode to return ESP_BT_MODE_BTDM. Also, in BlueDroid option Classic Bluetooth (A2DP) and Bluetooth Low Energy are activated as expected. Am I missing something in the configuration to make btdm_controller_get_mode returning ESP_BT_MODE_BTDM ?
My error occurs at line 1655 of bt.c:
Since, the function btdm_controller_get_mode() return a different mode than expected, and to figure out why I'd like to find the definition of btdm_controller_get_mode, which I cannot find in my project or in esp-idf .
Regards,
Matt
The functionbtdm_controller_get_mode below is retourning a wrong mode number . I am expecting 4 (ESP_BT_MODE_BTDM), but 1 (ESP_BT_MODE_BLE) is returned. In menuconfig->Component->Bluetooth->Bluetooth->Host Bluedroid - Dual-Mode is activated, so I am expecting btdm_controller_get_mode to return ESP_BT_MODE_BTDM. Also, in BlueDroid option Classic Bluetooth (A2DP) and Bluetooth Low Energy are activated as expected. Am I missing something in the configuration to make btdm_controller_get_mode returning ESP_BT_MODE_BTDM ?
My error occurs at line 1655 of bt.c:
Code: Select all
if (mode != btdm_controller_get_mode()) {
return ESP_ERR_INVALID_ARG;
}
Regards,
Matt