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