在使用mqtt时遇到了标识符未定义的问题
Posted: Thu Apr 16, 2026 2:52 am
我的ESP-IDF版本是5.4.3
头文件“mqtt-client.h”已经引入
menuconfig里也已经将mqtt启用
清理就缓存bulid文件后重新编译也无法完成编译
在使用mqtt例程中碰到了“esp_mqtt_client_handle_t”和“esp_mqtt_event_handle_t”这两个结构体报标识符未定义的错误,网上找了很久都没找到解决办法,请问有人可以帮我看下吗?
error: unknown type name 'esp_mqtt_client_handle_t'
34 | static esp_mqtt_client_handle_t mqtt_global_client;

头文件“mqtt-client.h”已经引入
menuconfig里也已经将mqtt启用
清理就缓存bulid文件后重新编译也无法完成编译
在使用mqtt例程中碰到了“esp_mqtt_client_handle_t”和“esp_mqtt_event_handle_t”这两个结构体报标识符未定义的错误,网上找了很久都没找到解决办法,请问有人可以帮我看下吗?
error: unknown type name 'esp_mqtt_client_handle_t'
34 | static esp_mqtt_client_handle_t mqtt_global_client;
