#define DHCP_IP CONFIG_DHCP_IP #define DNS_SERVER CONFIG_DNS_SERVER // decode DHCP server IP esp_ip4_addr_t dhcpIP; esp_netif_str_to_ip4(DHCP_IP, dhcpIP); // decode DNS server IP esp_ip4_addr_t dnsIP; esp_netif_str_to_ip4(DNS_SERVER, dnsIP); // new dhcp server lfggggggg dhcps_t dhcps = dhcps_new(); // set some silly optionsssss ESP_ERROR_CHECK(dhcps_dns_setserver(*dhcps, dnsIP)); // run the fucka ESP_ERROR_CHECK(dhcps_start(*dhcps, netifWifi, dhcpIP)); /* // get DHCP option u8_t option_id_ret; u32_t option_len_ret; dhcps_option_info(*dhcps, option_id_ret, option_len_ret); */