set description for interface pointer
Posted: Sun Jan 14, 2024 3:46 pm
hi. defining wifi interface with default functions. i have pointer to interface. but how can i set description in this case?
issue code:
issue description:
issue code:
Code: Select all
esp_netif_t *ap_netif;
....
ap_netif = esp_netif_create_default_wifi_ap();
ap_netif->if_desc = "wlan"; // <- here i have error : "invalid use of incomplete type 'esp_netif_t' {aka 'struct esp_netif_obj'}"
esp_netif_new() - system function that returns pointer and if i try to set if_desc - i get error "invalid use of incomplete type 'esp_netif_t' {aka 'struct esp_netif_obj'}"