How to use the new functional of WiFi comunications

pilnikov
Posts: 1
Joined: Fri Oct 11, 2019 6:28 am

How to use the new functional of WiFi comunications

Postby pilnikov » Fri Oct 11, 2019 6:40 am

Hello.
Help me, please!!!!
I am trying to use ESP-ADF with the latest (4.0.1) version of ESP-IDF. When compiling the http mp3 player example, I get a warning when esp_event_loop_set_cb (_wifi_event_callback, self) is called;
--> deprecated!
In the new version this function was replaced by:
esp_err_t esp_event_handler_register (esp_event_base_t event_base,
                                         int32_t event_id,
                                         esp_event_handler_t event_handler,
                                         void * event_handler_arg)
Hence the question: how to pass the "self" variable to the handler?
Thanks!

Who is online

Users browsing this forum: Remenyo and 291 guests