Unknown type name 'esp_event_handler_instance_t' / implicit declaration of function 'esp_event_handler_instance_register'
shaffenmeister opened this issue · comments
Prerequisites
- I have written a descriptive issue title
- I have verified that I am using the latest version of esp32-wifi-manager
- I have searched open and closed issues to ensure it has not already been reported
Description
When compiling the default application or an own application using esp32-wifi-manager, the following error messages are issued:
wifi_manager.c:892:5: error: unknown type name 'esp_event_handler_instance_t'; did you mean 'esp_event_handler_t'?
wifi_manager.c:894:21: error: implicit declaration of function 'esp_event_handler_instance_register'
Steps to Reproduce
- Clone esp-idf 4.1 (branch release/v4.1 or branch v4.1-rc)
- Clone esp32-wifi-manager as per documentation. Branch: v3.2
- cd esp32-wifi-manager/examples/default_demo
- source export.sh
- idf.py build
System Configuration
Ubuntu 20.04 AMD64
ESP IDF as specified above
esp32-wifi-manager v3.2
Additional information: Compilation works with the esp idf master .
Very very interesting. Something didn’t make the cut in the 4.1 release candidate but it’s unclear what it is.
Thank you for the report.
I’ll open an incident at esp-idf and see what they say.
Update.
As per usual, the answer often lies in the documentation.
Looking at:
https://docs.espressif.com/projects/esp-idf/en/v4.1-rc/api-reference/system/esp_event.html
or
https://docs.espressif.com/projects/esp-idf/en/release-v4.1/api-reference/system/esp_event.html
It appears 4.1 does not support esp_event_handler_instance_register yet and this is a feature that will come in 4.2.
I will update the README accordingly. As 4.2 is yet to release esp32-wifi-manager will only work with the master tree for now.