forked from espressif/esp-protocols
f44c5694228eebebe25720aeadbc6157c8635314
tcpip_adapter_dhcpc_get_status() returns the actual internal value of dhcp client without any locking or TCP/IP stack context call, so when CONNECTED event fired with default settings it started DHCP client in TCP/IP stack context and at the same time mdns event handler checking actual DHCP state, which could still be INIT (not STARTED). Purpose of this check is to enable PCB if DHCP was stopped before setting network interface up (typically static IP settings), so the solutin is to check against TCPIP_ADAPTER_DHCP_STOPPED state * Original commit: espressif/esp-idf@7f410a0bcb
Collection of protocol components for ESP-IDF
Components
esp_modem
- Brief introduction README
- Full html documentation
esp_websocket_client
- Brief introduction README
- Full html documentation
Description
Languages
C
56.2%
C++
36.3%
Python
4.4%
CMake
2.3%
Shell
0.3%
Other
0.5%