set description for interface pointer

Lagunax
Posts: 21
Joined: Mon Sep 09, 2019 8:24 pm

set description for interface pointer

Postby Lagunax » 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:

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'}"

MicroController
Posts: 1734
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: set description for interface pointer

Postby MicroController » Sun Jan 14, 2024 7:00 pm

Apparently, you're not supposed to change the description once it has been set at creation of the interface.

Who is online

Users browsing this forum: atx823, Google [Bot], MicroController and 189 guests