In SoftAP DHCP Server Eventually Stops

ESP Lover
Posts: 5
Joined: Tue Aug 27, 2019 12:37 am

In SoftAP DHCP Server Eventually Stops

Postby ESP Lover » 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.

XHYZN_Marshall
Posts: 35
Joined: Mon May 25, 2020 2:12 am

Re: In SoftAP DHCP Server Eventually Stops

Postby XHYZN_Marshall » Wed Jun 03, 2020 2:55 am

I got this problem too.

I think the progress of problem happening is same as yours.

You can see my post ,but I have not solved it yet.

According to the problem tracking,the problem source is that the next function return -1:

int esp_wifi_internal_tx(wifi_interface_t wifi_if, void *buffer, uint16_t len);

DHCP uses UDP protocol for communication, and this function is the final call function of UDP,but we can't see the implementation of this function


viewtopic.php?f=25&t=15824&p=60353&hilit=UDP#p60353

Who is online

Users browsing this forum: Baidu [Spider] and 127 guests