espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
13.57k stars 7.4k forks source link

Example CaptivePortal from DNSServer.h #10422

Open RodrigoStefanini opened 3 weeks ago

RodrigoStefanini commented 3 weeks ago

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

lbernstone commented 3 weeks ago

Already fixed in https://github.com/espressif/arduino-esp32/pull/10366 Please include version in your issue description. It's there for a reason.