Skip to content

DHCP option 114 for captive portal #11399

Closed
@eyaler

Description

@eyaler

Board

esp32s3

Device Description

lilygo t-energy s3

Hardware Configuration

n/a

Version

latest master (checkout manually)

IDE Name

arduino ide

Operating System

windows 11

Flash frequency

80Mhz

PSRAM enabled

yes

Upload speed

921600

Description

dhcp option 114 has been added to esp-idf 5.4 here, which has recently been merged into arduino-esp32 master. how can i use it in captive portal?

Sketch

i am using the captiveportal example

Debug Message

n/a

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Activity

SuGlider

SuGlider commented on May 26, 2025

@SuGlider
Collaborator

This is an IDF new feature. ESP32 Arduino Core doesn't support it directly.
It is possible to replicate the IDF example using an Arduino sketch that calls IDF directly, given that it is included within the Arduino Core Static IDF Libraries.
Another way to implement that feature would be by creating an Arduino as IDF Component project.

For more information about how to use this feature, please check the IDF example at
https://github.com/espressif/esp-idf/blob/master/examples/protocols/http_server/captive_portal/README.md

lbernstone

lbernstone commented on May 26, 2025

@lbernstone
Contributor

It looks like there is a CONFIG_ option, so this would need to be enabled in the sdkconfig.

SuGlider

SuGlider commented on May 27, 2025

@SuGlider
Collaborator

It looks like there is a CONFIG_ option, so this would need to be enabled in the sdkconfig.

@eyaler - As pointed by @lbernstone, in such case, the only solution would be building the Arduino Project as IDF Component in order to change settings with idf.py menuconfig and then enabling CONFIG_ESP_ENABLE_DHCP_CAPTIVEPORTAL, among other necessary IDF features.

Given that this is not an Arduino matter, I'll close this issue.

me-no-dev

me-no-dev commented on May 27, 2025

@me-no-dev
Member

We could try and implement this, since it's optional and will require additional calls to DHCP. I've kept the issue in my backlog

self-assigned this
on May 27, 2025
added this to the 3.3.0 milestone on May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

    Development

    Participants

    @eyaler@me-no-dev@lbernstone@Jason2866@SuGlider

    Issue actions

      DHCP option 114 for captive portal · Issue #11399 · espressif/arduino-esp32