Skip to content

Wifi STA+SoftAP have DHCP Server listening and answering to STA interface #4918

@cpainchaud

Description

@cpainchaud

Hardware:

Board: ESP32 Dev Module
Arduino IDE Version : 10805
ESP SDK version: v3.2.3-14-gd3e562907
IDE name: Platform.io
Flash Frequency: 40Mhz
PSRAM enabled: no
Upload Speed: 940000
Computer OS: Windows 10

Description:

When STA mode is on along with SoftAP, DHCP server will respond on STA interface as well which creates network issues.
If I add this code: tcpip_adapter_dhcps_stop(TCPIP_ADAPTER_IF_AP) then ofc it stops happening but AP interface is not serving DHCP anymore.
Then if I use tcpip_adapter_dhcps_stop(TCPIP_ADAPTER_IF_STA) it just has no effect.

Logs are showing plenty of:
dhcps: send_offer>>udp_sendto result 0

Sketch: (leave the backquotes for code formatting)

//Change the code below by your sketch
#include <Arduino.h>

void setup() {
}

void loop() {
}

Debug Messages:

Enable Core debug level: Debug on tools menu of Arduino IDE, then put the serial output here 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions