How to get an esp_netif handle?

raldone01
Posts: 8
Joined: Thu Apr 18, 2019 9:37 pm

How to get an esp_netif handle?

Postby raldone01 » Sat Feb 29, 2020 9:10 am

I initialize the netif with the following code:

Code: Select all

esp_netif_init();
esp_netif_obj * station = esp_netif_create_default_wifi_sta();
esp_netif_obj * ap = esp_netif_create_default_wifi_ap();
Do I have to pass the station and ap object around in my application or is there an easy way to get these later?
I expect something like that:

Code: Select all

esp_netif_obj * ap = esp_netif_get_default_wifi_ap();
esp_netif_obj * ap = esp_netif_get(TCPIP_ADAPTER_IF_STA);

Who is online

Users browsing this forum: Baidu [Spider] and 141 guests