VS Code - menuconfig enable BT error

sehermavi
Posts: 2
Joined: Wed Aug 02, 2023 2:45 pm

VS Code - menuconfig enable BT error

Postby sehermavi » Thu Aug 03, 2023 10:57 am

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++",
}]

sehermavi
Posts: 2
Joined: Wed Aug 02, 2023 2:45 pm

Re: VS Code - menuconfig enable BT error

Postby sehermavi » Wed Nov 22, 2023 11:31 am

Hello, I've been having the same problem for a while. Did you solve it? If you solved it, how? Can I learn?

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

Re: VS Code - menuconfig enable BT error

Postby ESP_bignacio » Thu Dec 14, 2023 3:53 am

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

Who is online

Users browsing this forum: No registered users and 21 guests