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

Moderator: ESP_Bob

wishlucky
Posts: 6
Joined: Tue Aug 15, 2023 5:36 am

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

Postby wishlucky » Tue Aug 22, 2023 2:20 am

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 了,但是还是在报这个错误??这个要怎么解决

ESP_zhanghaipeng
Posts: 41
Joined: Thu May 04, 2023 3:49 am

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

Postby ESP_zhanghaipeng » Tue Aug 22, 2023 10:31 am

可以给出完整的 log 吗?

wishlucky
Posts: 6
Joined: Tue Aug 15, 2023 5:36 am

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

Postby wishlucky » Fri Sep 08, 2023 3:04 am

源码历程 直接编译就是这样的,没有做任何的修改

ESP_zhanghaipeng
Posts: 41
Joined: Thu May 04, 2023 3:49 am

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

Postby ESP_zhanghaipeng » Fri Oct 13, 2023 6:29 am

IDF 使用的哪个版本?

Who is online

Users browsing this forum: No registered users and 7 guests