报错unknown type name 'esp_event_handler_instance_t'; did you mean 'esp_event_handler_t', 引入如下: #include <stdio.h> #include <stdlib.h> #include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/event_groups.h" #include "esp_system.h" ...
esp_event_handler_instance_t位于esp_event_base.h中,是8个月前加入的,有没有可能你copy的example是从最新的idf上拿的,而编译用的IDF版本比较老? Post Reply 2 posts • Page1of1 Return to “ESP-IDF 中文讨论版” Jump to Who is online