DHCP server softAP slow connection to iPhone and pc

paullbart
Posts: 4
Joined: Fri Dec 07, 2018 2:32 am

DHCP server softAP slow connection to iPhone and pc

Postby paullbart » Fri Dec 07, 2018 3:00 am

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.

Who is online

Users browsing this forum: AdsBot [Google] and 53 guests