Page 1 of 1

VS Code - menuconfig enable BT error

Posted: Thu Aug 03, 2023 10:57 am
by sehermavi
Hello, could someone please help me?
I am working on a Linux platform with the ESP-IDF v4.4.5 with the configuration:

Operating System: Ubuntu 22.04.2 LTS
VS Code Version: 1.80.1
Python set for IDF_PYTHON_ENV: Python 3.8.5
Language: C++ 17
CMake: 3.5

I have successfully installed ESP-IDF in VSCode. I did successfully run "gatt_server_service_table_demo" example. Now, I am working on a BLE project. I am getting the following compilation error even though I have enabled the Bluetooth in menuconfig. How can I fix this problem?

[{
"resource": "..../main/main.cpp",
"owner": "C/C++: IntelliSense",
"code": "1574",
"severity": 8,
"message": "static assertion failed with \"please enable bluetooth in menuconfig to use esp_bt.h\"",
"source": "C/C++",
}]

Re: VS Code - menuconfig enable BT error

Posted: Wed Nov 22, 2023 11:31 am
by sehermavi
Hello, I've been having the same problem for a while. Did you solve it? If you solved it, how? Can I learn?

Re: VS Code - menuconfig enable BT error

Posted: Thu Dec 14, 2023 3:53 am
by ESP_bignacio
What is the content of your c_cpp_properties.json ? Are you resolving headers using the compile_commands.json ?

Look into the documentation : https://github.com/espressif/vscode-esp ... URATION.md