In SoftAP DHCP Server Eventually Stops
Posted: Sat May 30, 2020 12:17 am
When connecting to an ESP32 in softAP mode from an ESP32 client, the client connects and disconnects just fine for a while. Eventually, the AP will show the following error:
dhcps: send_offer>>udp_sendto result ffffffff
The client connects but doesn't get a lease. If I try to connect from another device, like my
iPhone, it doesn't get a lease either.
I'm using AsyncTCP (me-no-dev Oct 17, 2019 version) on the server. I'm using the 1.12.2 Espressif 32 board library in PlatformIO. (Didn't work with 1.12.1 either)
Adding tcpip_adapter_dhcps_stop(TCPIP_ADAPTER_IF_AP) and tcpip_adapter_dhcps_start(TCPIP_ADAPTER_IF_AP) every minute didn't help.
Any idea why I'm unable to obtain a lease? Rebooting the AP does fix the issue so it doesn't appear to be an issue with the client.
dhcps: send_offer>>udp_sendto result ffffffff
The client connects but doesn't get a lease. If I try to connect from another device, like my
iPhone, it doesn't get a lease either.
I'm using AsyncTCP (me-no-dev Oct 17, 2019 version) on the server. I'm using the 1.12.2 Espressif 32 board library in PlatformIO. (Didn't work with 1.12.1 either)
Adding tcpip_adapter_dhcps_stop(TCPIP_ADAPTER_IF_AP) and tcpip_adapter_dhcps_start(TCPIP_ADAPTER_IF_AP) every minute didn't help.
Any idea why I'm unable to obtain a lease? Rebooting the AP does fix the issue so it doesn't appear to be an issue with the client.