Page 1 of 1

set description for interface pointer

Posted: Sun Jan 14, 2024 3:46 pm
by Lagunax
hi. defining wifi interface with default functions. i have pointer to interface. but how can i set description in this case?
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'}"
issue description:
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'}"

Re: set description for interface pointer

Posted: Sun Jan 14, 2024 7:00 pm
by MicroController
Apparently, you're not supposed to change the description once it has been set at creation of the interface.