Page 1 of 1

gatt_server_service_table 源码编译报错,静态断言错误

Posted: Tue Aug 22, 2023 2:20 am
by wishlucky
esp_bt_controller_config_t bt_cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT();

message": "静态断言失败,原因是 \"please enable bluetooth in menuconfig to use esp_bt.h\"",

[{
"resource": "/e:/1zhc/ESP32/vscod-idf-licheng/gatt_server_service_table/main/gatts_table_creat_demo.c",
"owner": "C/C++: IntelliSense",
"code": "1574",
"severity": 8,
"message": "静态断言失败,原因是 \"please enable bluetooth in menuconfig to use esp_bt.h\"",
"source": "C/C++",
"startLineNumber": 528,
"startColumn": 41,
"endLineNumber": 528,
"endColumn": 74
}]
我已经使能 bluetooth 了,但是还是在报这个错误??这个要怎么解决

Re: gatt_server_service_table 源码编译报错,静态断言错误

Posted: Tue Aug 22, 2023 10:31 am
by ESP_zhanghaipeng
可以给出完整的 log 吗?

Re: gatt_server_service_table 源码编译报错,静态断言错误

Posted: Fri Sep 08, 2023 3:04 am
by wishlucky
源码历程 直接编译就是这样的,没有做任何的修改

Re: gatt_server_service_table 源码编译报错,静态断言错误

Posted: Fri Oct 13, 2023 6:29 am
by ESP_zhanghaipeng
IDF 使用的哪个版本?