I'm creating a captive portal to receive the user's home wifi credentials. As recommended, I set up a DNS server that reroutes all requests to my access point. This works fine with iPhone and Windows: both send well-formed UDP packages. However, the ESP doesn't receive any UDP information from the Android phone. It is my understanding that Android uses HTTPS or TSL for DNS, and that this is the root cause for the failure.
Is there any support in ESP-IDF (or ESP-Arduino) for working with devices that don't use UDP for DNS requests? Does anyone have any workarounds for this?
I would really appreciate any pointers.
Support for captive portal using https or TSL query?
Re: Support for captive portal using https or TSL query?
As far as I know, Android uses DHCP options for captive portal detection. This approach is described here: https://datatracker.ietf.org/doc/html/d ... rfc7710bis
ESP-IDF provides a function dhcps_set_option_info which can be used to set additional DHCP options. Please give it a try, if it works I think it would be a good idea to add this to esp-idf captive portal example.
ESP-IDF provides a function dhcps_set_option_info which can be used to set additional DHCP options. Please give it a try, if it works I think it would be a good idea to add this to esp-idf captive portal example.
Who is online
Users browsing this forum: No registered users and 468 guests