Skip to content

Example CaptivePortal from DNSServer.h #10422

Closed
@RodrigoStefanini

Description

@RodrigoStefanini

Related area

Esp32

Hardware specification

Esp32 wroom

Is your feature request related to a problem?

The example of CaptivePortal do not work for me, and i modify the code for be usefull.

Describe the solution you'd like

The proposal is to make the example functional, if this occurs for other users.

Describe alternatives you've considered

Change this:
"if (dnsServer.start()) {
Serial.println("Started DNS server in captive portal-mode");
} else {
Serial.println("Err: Can't start DNS server!");
}
"

Additional context

The code only work for me wen i put:

"dnsServer.start(53, "*", WiFi.softAPIP());"

I dont know if this is about some version, i used the 3.0.5 esp32 lib for arduino.

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.

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