migrating

This commit is contained in:
2026-05-26 22:16:15 -06:00
commit b031059f95
50 changed files with 2465 additions and 0 deletions
@@ -0,0 +1,29 @@
#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);
*/