esp-hosted
esp-hosted copied to clipboard
esp-hosted/feature Cannot obtain DHCP lease
I have tried both:
LWIP_TCPIP_CORE_LOCKING 1
LWIP_TCPIP_CORE_LOCKING 0
The code executes without any apparent problems.
- Host Connects to AP
- Host Receives mac address
but
void esp_netif_action_connected(void *esp_netif, esp_event_base_t base, int32_t event_id, void *data){
esp_netif_dhcpc_start(esp_netif);} // GOOD
}
=>
static inline esp_err_t esp_netif_lwip_ipc_call(esp_netif_api_fn fn, esp_netif_t* netif, void *data)
{
return esp_netif_lwip_ipc_call_msg(&msg); // GOOD
}
=>
static esp_err_t esp_netif_dhcpc_start_api(esp_netif_api_msg_t *msg){
if (dhcp_start(p_netif) != ERR_OK) { // GOOD
}
=>
err_t dhcp_start(struct netif *netif)
result = dhcp_discover(netif); // NOTHING
}