Page 1 of 1

Static IP with ESP-NETIF

Posted: Thu Jul 02, 2020 10:33 pm
by tosemusername
How to properly do it? Like many parts of IDF, the documentation is lacking, and the only thing I know is that I have to call `esp_netif_set_ip_info` with the DHCP client not running.
Is there no way to kickstart the netif library with this information loaded already, or do I really have to start it with DHCP first? When exactly should I stop the DHCP client? Should I restart it after changing the IP?