How to get an esp_netif handle?
Posted: Sat Feb 29, 2020 9:10 am
I initialize the netif with the following code:
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_init();
esp_netif_obj * station = esp_netif_create_default_wifi_sta();
esp_netif_obj * ap = esp_netif_create_default_wifi_ap();
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);