usage of esp_err_t event_handler

tank123
Posts: 1
Joined: Sat Aug 19, 2017 6:29 pm

usage of esp_err_t event_handler

Postby tank123 » Sat Aug 19, 2017 6:29 pm

for what is this for?

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

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: usage of esp_err_t event_handler

Postby ESP_igrr » Sun Aug 20, 2017 7:49 am

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.

Who is online

Users browsing this forum: No registered users and 150 guests