Page 1 of 1

DHCP server softAP slow connection to iPhone and pc

Posted: Fri Dec 07, 2018 3:00 am
by paullbart
I have set up my exp32 as an access point.
When my iPhone or PC connects, in the serial monitor I get the following messages:

dhcps: send_offer>>udp_sendto result 0

this happens for somewhere between 30 seconds and over 1 minute. The phone eventually connects to the ESP and I can access its web server.
I was getting crashes on first connection attempt until I set enableAP(true), so its not crashing now at least.
Here is the following code I use to setup my access point:

Code: Select all

    WiFi.enableSTA(false);
    WiFi.enableAP(true); 
    WiFi.mode(WIFI_AP);
    delay(1000);     
    WiFi.softAPConfig(local_IP, gateway, subnet);
    WiFi.softAP(SSID, PASSWORD);
    delay(1000);
the crashes I was getting were related to dhcpserver.c, but I can't find out where this is added to the build.
Is anyone else experiencing long connection times, or have any idea what the issue may be?

Paul.