Page 1 of 1

usage of esp_err_t event_handler

Posted: Sat Aug 19, 2017 6:29 pm
by tank123
for what is this for?

esp_err_t event_handler(void* ctx, system_event_t* event)
{
return ESP_OK;
}

Re: usage of esp_err_t event_handler

Posted: Sun Aug 20, 2017 7:49 am
by ESP_igrr
Event handler is used to tie events from WiFi/Ethernet/LwIP stacks into application logic.

You can see some of the examples in ESP-IDF using these events:
https://github.com/espressif/esp-idf/bl ... .c#L54-L73

For description of events from WiFi driver, please refer to the documentation:
http://esp-idf.readthedocs.io/en/latest ... escription

Documentation about Ethernet/LwIP events is coming up, please check the examples for now.