STM32f746 switching static IP to DHCP in run time with LWIP FREERTOS
when I press an external interrupt button, I want to switch to static IP, press again want to switch to DHCP, how can I get this? because in CubeMX it just defines once for LWIP_DHCP macro and how can I use this for static IP or vice versa ?