esp_netif_get_ip_info returns random values and crashes when used in a const function
This is a function that gets the IP address provided an interface, It works as expected but only the fist time it executes, as soon as the device connects to an access point and receives an address it returns garbage.